开发者

IBoutlet , 2 Different ways to Write?

开发者 https://www.devze.com 2023-01-09 12:11 出处:网络
I am new to iPhone OS App development. Can somebody explain whats the difference between IBOutlet UIButton *myButton;

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消