[英]How to know return types of methods in xcode? - iphone development
while typing in Xcode, (objective - c for iPhone dev) 在Xcode中键入时,(目标-iPhone开发人员的c语言)
Suppose I write 假设我写
[mySprite [mySprite上
[[here mySprite is an object of sprite class ( cocos2d - for game development ). [[这里mySprite是Sprite类的对象(cocos2d-用于游戏开发)。 ]]
]]
After writing this, if I press ## esc ## key. 写完之后,如果我按## esc ##键。
It will show me all the methods. 它会告诉我所有方法。
Lets take an example, 让我们举个例子
If I am using [mySprite position]; 如果我正在使用[mySprite位置]; 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. .net提供了一个工具提示,当我们按ctrl +空格时,它将显示所有属性和方法以及其签名和其他提示。 Does x Code provides the same?
x Code是否提供相同的功能?
( actually, Before being a iphone developer - i was .net trainee developer, So, actually I am expecting something like .net ) (实际上,在成为iphone开发人员之前-我是.net培训人员开发人员,所以,实际上我期望使用.net这样的东西)
In Xcode, open Preferences, go to Code Sense, and check "Show arguments in pop-up list". 在Xcode中,打开“首选项”,转到“代码感知”,然后选中“在弹出列表中显示参数”。 Now the list will show return types and parameters.
现在,列表将显示返回类型和参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.