Hi all,
Quick question: has the way to connect an event to an UIButton changed in Xcode 4 and the latest version of the SDK? I have a project made in the previous version of Xcode with an UIButton connected to an event in Interface Builder, and the event executes correctly. The event is declared as follows:
The event code resides in the application delegate class, and it is connected in IB directly on the UIButton's Touch Down event. There is no @property declaration for the UIButton, yet the event executes. I have another project created in Xcode 4 set up exactly the same way, yet the event throws an exception when executed, something about an "Invalid selector" (I don't have the exact message with me right now). I also get a similar exception if I try to create a @property for the UIButton and connect it in IB. Does anyone have idea why this happens? I will try and post my project files later. Thanks for any info.
Quick question: has the way to connect an event to an UIButton changed in Xcode 4 and the latest version of the SDK? I have a project made in the previous version of Xcode with an UIButton connected to an event in Interface Builder, and the event executes correctly. The event is declared as follows:
Code:
-(IBAction)showNextView
{
NSLog(@"Event executed");
}
The event code resides in the application delegate class, and it is connected in IB directly on the UIButton's Touch Down event. There is no @property declaration for the UIButton, yet the event executes. I have another project created in Xcode 4 set up exactly the same way, yet the event throws an exception when executed, something about an "Invalid selector" (I don't have the exact message with me right now). I also get a similar exception if I try to create a @property for the UIButton and connect it in IB. Does anyone have idea why this happens? I will try and post my project files later. Thanks for any info.