In the following code what is the function of -(IBAction)setLabelPushed:(id)sender;
#import <UIKit/UIKit.h>
@interface BasicIPhoneAppViewController : UIViewController
{
IBOutlet UILabel *myLabel;
IBOutlet UITextField *myTextField;
}
-(IBAction)setLabelPushed:(id)sender;
@end
-(IBAction)setLabelPushed:(id)senderyou will be needing this method when you connect your Control to a certain Event, the interface builder will allow you to connect the control with events only with defined method asIBActionif your not planing to use it in interface builder then keep it void, or whatever returning type you need.