Xcode代码生成 [英] Xcode code generation
问题描述
我想知道是否有工具(自动脚本或第三方)来为诸如添加另一个属性之类的简单方案生成代码。我不喜欢去两三个地方,一遍又一遍地写同样的东西。相反,我想说我想要一个名称为int的int类型的新属性,它可以一次性为我在.h和.m文件中生成行。
I was wondering if there is a tool (automator script or a third party) to generate code for simple scenarios like add another property. I don't like going to two or three places and write the same thing over and over again. instead I want to say "I want a new property of type int with name X" and it generates the lines in .h and .m files for me in one go.
推荐答案
我实际上也没有使用过,但是 xobjc 是免费的(尽管需要您做一些代码注释),并且 Accessorizer 看起来很有趣(如果设置起来有些复杂)
I haven't actually used either, but xobjc is free (though requires you to do some code annotations) and Accessorizer looks interesting if somewhat complicated to setup.
这篇关于Xcode代码生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!