开发者

How to know return types of methods in xcode? - iphone development

while typing in Xcode, (objective - c for iPhone dev)

Suppose I write

[mySprite

[[here mySprite is an object of sprite class ( cocos2d - for game development ). ]]

After writing this, if I press ## esc ## key.

It will show me all the methods.

Lets take an example,

If I am using [mySprite position]; method,

How can I came to know, what actually ## position ## method returns?

Let's take an example of other Integrated development environment.

.net provides a tool tip, when we press ctrl + space, it will show all the properties & methods with it's signature & other hints. Does x Code provides the same?

( actually, Before being a iphone developer - i was .net trainee developer, So, actually I am expe开发者_Python百科cting something like .net )


In Xcode, open Preferences, go to Code Sense, and check "Show arguments in pop-up list". Now the list will show return types and parameters.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜