There are two different methods to declare IBOutlet.
In @interface section as variable:
IBOutlet UIButton *exampleButton;
Below the curve bracket but before @end of .h file as property:
@property (nonatomic, retain) IBOutlet UIButton *exampleButton;
What is the difference between these two methods and where should I use each one? Which method is better and in what cases?
See Question&Answers more detail:os