用于类继续的Xcode代码片段? [英] Xcode code snippet for class continuation?
问题描述
我有一个Xcode(4.6)代码片段用于创建属性 - 一个用于弱,一个用于强属性:
I have an Xcode (4.6) code snippet for creating properties – one for weak, one for strong properties:
键入 propstrong
在界面声明(.h文件)中运行良好,但是当我在课程延续中执行时,不提供我的代码片段:
Typing propstrong
works nicely in the interface declaration (.h file), but doesn’t offer me the snippet when I do it in the class continuation:
@interface MyClass ()
propstrong
//没有任何反应:(
propstrong
// nothing happens :(
@end
我已尝试过片段编辑器中的所有完成范围(甚至是全部),但无济于事。任何想法?
I have tried all the completion scopes in the snippet editor (even "All"), to no avail. Any ideas?
推荐答案
我错误地将语言字段保留在其奇怪的默认选择Objective-C ++中。将其更改为Objective-C ,并且该片段在课程延续中有效。
I had mistakenly left the Language field at its strangely-default selection, Objective-C++. Change this to Objective-C, and the snippet works in class continuations.
这篇关于用于类继续的Xcode代码片段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!