简体   繁体   中英

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 expecting 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM