ARC的@property定义:现在是强默认吗? [英] @property definitions with ARC: Is strong default now?

查看:116
本文介绍了ARC的@property定义:现在是强默认吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需在新的xcode 4.3.1上运行ARC重构工具,并注意到我的(非原子,保留)属性正在换出(非原子)而不是(非原子,强),就像前面的xcode一样。

Just running the ARC refactoring tool on the new xcode 4.3.1 and noticed that my (nonatomic, retain) properties are being swapped out for just (nonatomic) instead of (nonatomic, strong) like in the previous xcode.

我的代码似乎在这次更改后运行正常,所以我假设它默认为强大,任何人都知道为什么ARC转换器发生了变化?

My code seems to run fine after this change so I am assuming that it is defaulting to strong anyway, anyone know why things have changed with the ARC converter?

推荐答案

是的, strong 是Xcode 4.3及更高版本中的默认值。它在 LLVM文档和Apple的使用属性使用ARC

Yes, strong is the default in Xcode 4.3 and later. It's documented both in the LLVM docs and in Apple's guides to using properties and working with ARC.

这篇关于ARC的@property定义:现在是强默认吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆