What is the difference between declaring IBOutlets as
FooController.h:
and
Does it have to include the @property keyword when declaring IBOutlets? How do you declare them?
FooController.h:
Code:
@interface FooController : UIViewController {
IBOutlet UILabel *fooLabel;
}
@end
and
Code:
@interface FooController : UIViewController
@property (nonatomic, retain) IBOutlet UILabel *fooLabel;
@end
Does it have to include the @property keyword when declaring IBOutlets? How do you declare them?