【问题标题】:(retain, nonatomic) and (nonatomic, retain) any difference?(retain, nonatomic) 和 (nonatomic, retain) 有什么区别?
【发布时间】:2010-06-26 08:48:00
【问题描述】:

在这样的代码中,(retain, nonatomic) 和 (nonatomic, retain) 有什么区别:

@property (retain, nonatomic) YellowViewController *yellowViewController;

?

【问题讨论】:

    标签: iphone objective-c


    【解决方案1】:

    没有区别——属性属性说明符的顺序并不重要。

    【讨论】:

      【解决方案2】:

      两种方式我都见过——没有区别。

      【讨论】:

        猜你喜欢
        • 2013-02-26
        • 1970-01-01
        • 2013-03-20
        • 1970-01-01
        • 1970-01-01
        • 2011-07-18
        • 1970-01-01
        • 2019-04-02
        • 1970-01-01
        相关资源
        最近更新 更多