xCode 6 how to fix “Use of undeclared identifier” for automatic property synthesis?

前端 未结 3 2101
后悔当初
后悔当初 2020-12-15 02:32

I\'m using xCode6 Beta 3, and am running into an issue where a code which previously compiled fine (xCode 5.1.1 or xCode6 beta 2) suddenly started to give me \"Use o

3条回答
  •  一个人的身影
    2020-12-15 03:30

    If you have an explicit getter, automatic property synthesized will be ignored.

    Then you have to use @synthesize property = _property

提交回复
热议问题