开发者

xcode - warning there's no getter/setter for property not even mentioned in the code!

开发者 https://www.devze.com 2022-12-24 05:02 出处:网络
I got the warning : property \'textField\' requires method \'-textField\' to be defined - use @synthesize, @dynamic or provide a

I got the warning :

property 'textField' requires method '-textField' to be defined - use @synthesize, @dynamic or provide a method implementation.

Now, there is no such property defined in my project! More bizarre, if I just click save in Interface builder and build again, the build is suc开发者_运维技巧cessful - though, right on the line with '@end' the warning appears. Also weird: if I begin to write some code ..and then delete it just the way it was before writing it (maybe not code..anything) and then build&go the warning with the textField appears again. Could be a bug of sdk? What could be happening?


Go into interface builder, and click File > Read all class files. Save and quit IB. Go back into Xcode and click Build > Build & Clean. Build your project.

0

精彩评论

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

关注公众号