错误: [UILabel copyWithZone:]: unrecognized selector sent to instance
来源:互联网 发布:优化win8 编辑:程序博客网 时间:2024/05/28 15:44
12down voteI guess this was one of those weird bugs with XCode that you can't trace or reproduce every time. I narrowed the issue down to one specific UILabel in the IB. As soon as I connect to to a UIOutlet UILabel *
, I get this error.
On further investigation, it turns out that name title
was causing the issue. I had the label declared as
IBOutlet UILabel *title;
As soon as change the name to gtitle
, everything works as expected. Who knows?..
Yes, using title as a name for an IBOutlet variable cause big troubles! Thanks for this.... – tomsoft Jul 10 at 17:46 Just my problem, using title. The thing is, in another file I use title too, but all just fine. – Orlando Leite Aug 2 at 20:53 same problem here XD changing it to MainTitle worked – WolfLink Oct 27 at 6:17 This was killing me... thank you! In hindsight, definitely a poor choice for the ivar, but it wasn't critical so I named it by default. Super poor error message from Xcode – MobileVet Nov 12 at 20:21Was this post useful to you?
12down vote
I guess this was one of those weird bugs with XCode that you can't trace or reproduce every time. I narrowed the issue down to one specific UILabel in the IB. As soon as I connect to to a UIOutlet UILabel *
, I get this error.
On further investigation, it turns out that name title
was causing the issue. I had the label declared as
IBOutlet UILabel *title;
As soon as change the name to gtitle
, everything works as expected. Who knows?..
Yes, using title as a name for an IBOutlet variable cause big troubles! Thanks for this.... – tomsoft Jul 10 at 17:46
Just my problem, using title. The thing is, in another file I use title too, but all just fine. – Orlando Leite Aug 2 at 20:53
same problem here XD changing it to MainTitle worked – WolfLink Oct 27 at 6:17
This was killing me... thank you! In hindsight, definitely a poor choice for the ivar, but it wasn't critical so I named it by default. Super poor error message from Xcode – MobileVet Nov 12 at 20:21
- [UILabel copyWithZone:]: unrecognized selector sent to instance
- [UILabel copyWithZone:]: unrecognized selector sent to instance
- 错误: [UILabel copyWithZone:]: unrecognized selector sent to instance
- iOS中变量命名引起的错误错误: [UILabel copyWithZone:]: unrecognized selector sent to instance
- [UIDeviceRGBColor copyWithZone:]: unrecognized selector sent to instance
- [UIDeviceRGBColor copyWithZone:]: unrecognized selector sent to instance
- 关于 copyWithZone:]和[__NSArrayI addObject:]:unrecognized selector sent to instance
- -[UITableView copyWithZone:]: unrecognized selector sent to instance 0x7ff04d02b400
- "unrecognized selector sent to instance *****"的错误
- swift-错误unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- 关于在android系统移植中usb的连接问题
- Latex多行公式左对齐
- 关于URI、URL、URN区别和JAVA中对应类
- WEB前端开发 解决IE6、IE7、IE8样式不兼容问题
- 个人总结 VS一些基础技巧
- 错误: [UILabel copyWithZone:]: unrecognized selector sent to instance
- omapl138 ubifs文件系统移植 之U-boot移植一
- 使用事件驱动模型实现高效稳定的网络服务器程序
- 树状数组
- 对jdbc进行封装遇到的问题(一)
- 335. Old sin makes new shame. 一失足成千古恨
- 再度牵手webservice—验证磨刀不误砍柴工的真理
- 对jdbc进行封装(二)
- Google C++ 编程规范 1.3