错误:Can't add self as subview

错误

错误是这样描述的:
* Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘Can’t add self as subview’

解决方案

1.是否有某个 view直接添加了 view本身, 直接导致程序的崩溃。
2.曾经在iOS7刚发布的时候,总是出现这个 Can’t add self as subview 的崩溃, 现在已经没有问题了, 有兴趣的可以看一看这个博客 http://blog.csdn.net/wihing/article/details/27960741?utm_source=tuicool

你可能感兴趣的:(addself)