按钮获得 EXC_BAD_ACCESS?
我正在尝试创建一个简单的应用程序,允许您切换视图。我可以转到下一个视图,但是当我单击后退按钮时,我在 main.m 中的这一行收到 EXC_BAD_ACCESS 错误:
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
这是我用来返回的代码:
-(IBAction)back:(id)sender{
[self.view removeFromSuperview];
}
我无法弄清楚问题是什么,所以任何感谢帮助!谢谢。
im trying to create a simple app that allows you to switch views. I can go to the next view but when i click the back button i get a EXC_BAD_ACCESS error on this line in the main.m:
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
This is the code im using to go back:
-(IBAction)back:(id)sender{
[self.view removeFromSuperview];
}
i cant figure out what the problem would be so any help is appreciated! thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论