I’m trying to make a button which Full Size the UITextView in my demo app. And resize it to its original size after I RE-touch the button again (AKA Exit Full Screen Mode).
I never tried to add more than one Action on 1 UIButton.
-(IBAction)clickButtonFullSize:(id)sender
{
CGRect r = [[UIScreen mainScreen] bounds];
[myText setFrame:r];
}
-(IBAction)clickButtonReSize:(id)sender
{
[myText setFrame:CGRectMake(0,0,200,200)];
}
The first method is working fine when touching the UIButton. But how can I link the second method with the same button to reSize it (exit the full screen)?
You can simply do this by managing
tagof your button. No need for twoIBActions.