Goto another view; / goto another action;
I'm looking at a button push on one view changing the value of an integer on another. At the minute it sounds obvious but the IBAction doesn't know about the object on the other view that I want it to manipulate. Do I just need a line of code to point it to the other view? Or is it something else entirely?
I'm having the same/ a similar problem if I have a button push with a goto that's outside it's own action
for example
- (IBAction) buttonpush (id)sender
{
if (image.sethidden == yes)
image.sethidden = no
}
else
{
goto alert2;
}
}
-(void) alertfornoimage
{
alert2:
UIAlertview.....
}
the reason I want to do this and don't simply put the code at the end is I want many IBActions to display the same alert if the image is already unhidden....
|