开发者

Code completion in Xcode

开发者 https://www.devze.com 2023-03-27 16:00 出处:网络
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.

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

精彩评论

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

关注公众号