Xcode code snippet for class continuation?

 ̄綄美尐妖づ 提交于 2019-12-31 03:01:26

问题


I have an Xcode (4.6) code snippet for creating properties – one for weak, one for strong properties:

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   // nothing happens :(

@end

I have tried all the completion scopes in the snippet editor (even “All”), to no avail. Any ideas?


回答1:


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.



来源:https://stackoverflow.com/questions/14213686/xcode-code-snippet-for-class-continuation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!