I am new to iPhone OS App development. Can somebody explain whats the difference between
IBOutlet UIButton *myButton;
@property (nonatomic, retain) IBOutlet UIButton *myButton;
As far i understand the first line was used earlier and now we can use the 2nd line. Theres absolutel开发者_JS百科y no need to write both of them. Any idea?
Taimur
Apple now recommends that you only put the IBOutlet
declaration on the @property
.
I just write IBOutlet
in the @property declaration. It won't hurt to put it in both spots though.
You're not asking the difference between the whole lines though are you?
精彩评论