In Xcode 4.3, can I require forward method declarations as before

社会主义新天地 提交于 2019-12-22 05:48:09

问题


Prior to Xcode 4.3, if you wanted to use a method before you declared its implementation, you were required to forward declare the method (as with a C function prototype). This would usually be done in a class continuation (AKA class extension, private category). There's a good example in this question: Private Methods in Objective-C, in Xcode 4.3 I no longer need to declare them in my implementation file ?.

As of 4.3, this is no longer required; DRYers rejoice.

But can this magic be turned off, returning to the pre-4.3 behavior?


回答1:


Currently this is not possible. The parsing behavior for Objective-C was changed to no longer require forward declarations.



来源:https://stackoverflow.com/questions/9981533/in-xcode-4-3-can-i-require-forward-method-declarations-as-before

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!