【问题标题】:If my implementation or header file imports non-ARC code, does that mean this file is non-ARC as well?如果我的实现或头文件导入非 ARC 代码,这是否意味着该文件也是非 ARC?
【发布时间】:2012-02-04 13:24:59
【问题描述】:

例如,如果我使用一个不是 ARC 的大型开源库,这是否意味着我在导入该库的任何地方都必须设置 -fno-objc-arc 编译器标志?还是仅在相关的非 ARC 库文件上设置 -fno-objc-arc 就足够了?

【问题讨论】:

    标签: iphone ios ipad memory-management automatic-ref-counting


    【解决方案1】:

    只有库文件,而不是导入文件。

    【讨论】:

    • 所以如果我想修改那些库文件,当然还是得用-retain -release -autorelease -etc吧?
    【解决方案2】:

    放在相关文件里就够了

    【讨论】:

      猜你喜欢
      • 2014-05-29
      • 1970-01-01
      • 2012-04-09
      • 1970-01-01
      • 1970-01-01
      • 2012-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多