How do I replace weak references when using ARC and targeting iOS 4.0?

后端 未结 3 1167
有刺的猬
有刺的猬 2020-12-07 08:34

I\'ve begun developing my first iOS app with Xcode 4.2, and was targeting iOS 5.0 with a \"utility application\" template (the one that comes with a FlipsideViewController).

3条回答
  •  北海茫月
    2020-12-07 09:11

    Thanks to Mike Ash's compatibility library PLWeakCompatibilty, you can now simply use __weak on iOS 4.x, as well.

    It's incredibly easy to configure and requires no additional consideration or effort over 5.x.

提交回复
热议问题