当有2个单词时,在搜索栏中显示EXC_BAD_ACCESS? [英] EXC_BAD_ACCESS at searchbar when there are 2 Words?

查看:82
本文介绍了当有2个单词时,在搜索栏中显示EXC_BAD_ACCESS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是当我写一个像"Pasar"这样的字母时,错误没有显示,但是当我按空格键时,却显示了exc_bad_access之类的错误,为什么会这样呢?任何人都不能告诉我有关exc_bad_access的信息.

The problem is when I write a Letter like "Pasar" the error not showing, but when I press space the error like exc_bad_access showing, why can it be? any one can't tell me about exc_bad_access..

我正在使用xcode 4.2并在iPhone 5.0 Simulator上进行构建.

I'am using xcode 4.2 and build at iPhone 5.0 Simulator.

推荐答案

尝试使用NSZombies.在您的项目信息中,将NSZombieEnabled设置为YES. 阅读以在您的计算机中启用NSZombie项目.

Try using NSZombies. In your project info, set NSZombieEnabled to YES. Read this to enable NSZombie in your project.

这只是一个内存管理问题.您可能会先释放一些东西,然后再使用它,或者使用一些没有为其分配内存的变量. NSZombie会告诉您应用程序在哪里崩溃了.

Its just a memory management problem. You'll be releasing something earlier and then using it or you'll be using some variable which doesnt have memory allocated to it. NSZombie will tell you where the app got crashed.

这篇关于当有2个单词时,在搜索栏中显示EXC_BAD_ACCESS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆