UISearchBar 的 EXC_BAD_ACCESS 在 ios5 上工作但在 ios4 上不起作用?
- (void)reset{
searchList.text=@"";
SearchNear.text=@"";
[BNUtilitiesQuick ListController].searchBar1.text=@"";
[self ResignSearchFirstResponder];
}
这段代码在 IOS-5 上工作,但为什么这段代码在 IOS-4 上出错,并且总是说“EXC_BAD_ACCESS”,我查看了另一个问题,但没有找到答案,我已经通过设置环境启用僵尸检测变量 NSZombieEnabled 为 YES,但我找不到错误,任何人都可以帮助我修复它吗?我希望我的应用程序也能在 IOS-4 上运行
- (void)reset{
searchList.text=@"";
SearchNear.text=@"";
[BNUtilitiesQuick ListController].searchBar1.text=@"";
[self ResignSearchFirstResponder];
}
this code is work at IOS-5 but why this code is error at IOS-4, and always said like "EXC_BAD_ACCESS", I have looked another question but I don't find the answer, I already enable zombie detection by setting the environment variable NSZombieEnabled to YES, but I can't find the error, any one can help me to fix it? I want my application run at IOS-4 too
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然 iOS 5 的新功能仍处于 NDA 状态,但提及它并不是一个巨大的秘密。话虽这么说,XCode 的测试版在那段时间通常有很多错误。在相信 iOS 5 之前,我可能会先相信你们的标准版本的功能。我是根据经验说的。
最好的情况是将测试版安装在第二台计算机上,您可以来回安装。
对于特定于您的代码的问题,我会检查开发人员门户中的测试版论坛。你应该能够在那里公开谈论工作。祝你好运。
While the new features of iOS 5 are still under NDA, it isn't a giant secret mentioning it. That being said, the beta versions of XCode are usually pretty buggy during that time. I would probably trust what is coming out of your standard version before I would trust the iOS 5. And I am speaking from experience.
Best case scenario is to have the beta installed on a 2nd machine and you can go back and forth.
For issues specific to your code, I would check the beta forums in the developer portal. You should be able to openly talk shop there. Good luck.