是否可以在appCode中自动将方法声明为头文件(.h)?

时间:2012-04-17 08:05:56

标签: objective-c appcode

我使用了appCode。

当我在@implementation文件中编写方法时,我希望通过appCode的某些功能自动将方法声明为heder文件。

ex)我在@implementation文件中写了一个方法。

@implementation myClass
- (void)testMethod{
}
@end

自动将方法声明为@interface文件。

@interface myClass
- (void)testMethod;  <== automatically insert.
@end

如何通过appcode的功能自动将方法声明到头文件中?

1 个答案:

答案 0 :(得分:7)

使用插入符号光标在testMethod名称调用Opt + Enter并从列表中选择“在界面中声明方法”。