开发者

CoreDataGeneratedAccessors not generating automatic selectors

I am currently working on an App which uses core data. I tried specifying CoreDataGeneratedAccessors in the interace itself, but accessors like setName do not seem to be automatically generated.

Is this something wrong with my XCODE configuartion?

Thanks, J开发者_StackOverflow社区ith.


The generation of accessors by properties is a function of the language version and it is nearly impossible to change the language version in Xcode. In fact, I've never seen anyone with that problem.

You're most likely missing the @dynamic directive for the property in the implementation (.m) file. You need to have something like:

@implementation MyManagedObject
@dynamic propertyName;

... to get the accessors for managed objects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜