Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到我可以在 iOS 5 beta/XCode 4.2 beta 中使用点符号,即使对于不是属性Singleton.instance的方法,比如方法签名仅仅是+ (Singleton*) instance. 如果我没记错的话,我不能在 XCode 4.1 中做到这一点。
Singleton.instance
+ (Singleton*) instance
除了 Xcode 的代码完成之外,什么都没有改变。编译器始终允许您对方法使用点表示法,只有 Xcode 不会提供方法作为点表示法的代码完成建议。Xcode 4.2 似乎改变了这种行为。