我正在将Xcode 6.2用于iOS项目.在较早版本的Xcode中,为IBOutlet创建连接时,它始终是弱存储.现在,当我创建连接时,它们默认为强连接.我就这样走了,没有发现任何区别.
I'm using Xcode 6.2 for iOS projects. In older versions of Xcode, when a connection was create for an IBOutlet, it was always weak storage. Now when I create connections, they are defaulted to strong. I leave it that way and don't notice any difference.
哪个版本的Xcode的默认设置更改为强"?为什么?
Which version of Xcode did the default change to strong and why?
推荐答案是的,以前的销售渠道通常应该薄弱,但苹果公司已经改变了这一点.现在他们建议在WWDC 2015会话中使用 strong 网点在Interface Builder中实现UI设计. 原因可能很弱的唯一原因是保留周期.
Yes, previously outlets should generally be weak but Apple has changed that. Now they recommend to use strong outlets in the WWDC 2015 session Implementing UI Designs in Interface Builder. The only reason why it might be weak is retain cycle.
更多推荐
IBOutlet应该是弱变量还是强变量?
发布评论