我正在编码什么应该是一个非常简单的应用程序,其中一个方面是uitextview。该视图被装载并没有任何麻烦srollable,但如果用户试图按住选择一些文本,应用程序崩溃:在uitextview中选择的文本时,应用程序崩溃
2012-07-30 23:07:01.547 SASB[36340:c07] +[_UIDictionaryWrapper _availableDictionaryAssets] returned failed - retrying. Error: Error Domain=ASError Code=4 "The operation couldn’t be completed. (ASError error 4 - Unable to copy asset information)" UserInfo=0xaa64b90 {NSDescription=Unable to copy asset information} SASB(36340,0xac2a7a28) malloc: * error for object 0xaa611a0: double free * set a breakpoint in malloc_error_break to debug (lldb)
我不知道为什么会这样。我不是在在最好的时候调试太好,但这只是不断抛出我回main.m文件:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
任何帮助将非常感激。
如果您转到Xcode中的Breakpoint导航器选项卡并在Objective-C异常上设置断点,则它应该**导致调试器停止发生错误而不是跳入main.m.它不保证工作,但值得一试。 – 2012-07-30 15:27:51
感谢您的提示。我尝试用符号[NSException raise]创建一个符号断点,但是当引发这个错误时它不会被触发:( – 2012-07-31 00:21:23
我刚刚注意到,当我在任何对象中选择文本时,应用程序崩溃。当文本被选中时,CRASH :( – 2012-07-31 00:35:07