开发者

Code completion in Xcode

When you type the name of an object in Xcode and press escape to activate code completion, is there any way to only view the direct methods of that object.

At the moment I can see hundreds of different methods. Why are those methods even there? They can't all belo开发者_StackOverflow中文版ng to the parent object (NSObject in this case)?

And why can I see properties of the object appearing as methods? I wouldn't be surprised to the property's get or set methods (confusingly they are nowhere to be seen) but why does the property of the object itself appear as a method?


use "command + ." to achieve the direct methods of that object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜