关于performSelector:withObject:withObject:]: message sent to deallocated错误
最近遇到了这个很好的问题。做iphone开发时间很短,有好多东西都不知道,比如这个问题。
我在AppDelegate里创建了一个viewcontroller, view里有一个button按钮,为这个button添加了点击事件,问题来了,一点击
程序就崩溃了,回调函数也没有写错。后来在网上搜的原因是,创建的viewcontroller是个临时变量,然后执行了
UINavigationCo
原创
2012-07-12 15:19:47 ·
4843 阅读 ·
2 评论