UITextField exc_bad_access solution
来源:互联网 发布:java log4j的使用 编辑:程序博客网 时间:2024/06/07 06:30
I created a brand new view-based project and added into the viewDidLoad
- (void)viewDidLoad { [super viewDidLoad]; myField = [[UITextField alloc] initWithFrame:CGRectMake(50, 50, 150, 31)]; myField.delegate=self; [self.view addSubview:myField]; [myField release]; }
my header file is
@interface textfieldpracticeViewController : UIViewController<UITextFieldDelegate>{ UITextField *myField; }
when i click in the textfield and the keyboard pops up, i start typing but on the 2nd character, i get the exc_bad_access error. I ran it with NSZombieEnabled, NSDebugEnabled, MallocStackLoggin, and MallocStackNoCompact but they weren't able to catch the error.
This fails when using the iphone 4.3 simulator, but works fine when i build it on my iphone. is this an xcode error or am i missing something?
Thanks
the solution:
Try disabling autocorrection in the simulator's keyboard settings. This seems to be a bug in the autocorrection system of the simulator's iOS
- UITextField exc_bad_access solution
- EXC_BAD_ACCESS error with UITextField
- UITextField 输入英文会出现EXC_BAD_ACCESS错误的
- EXC_BAD_ACCESS
- EXC_BAD_ACCESS
- EXC_BAD_ACCESS
- EXC_BAD_ACCESS
- EXC_BAD_ACCESS
- EXC_BAD_ACCESS
- EXC_BAD_ACCESS
- Solution:
- solution
- UITextField
- UITextField
- UITextField
- UITextField
- UITextField
- UITextField
- JAVA NIO 笔记
- Eclipse下配置github安装环境
- 我的oracle 10g的oracle用户下.bash_profile的配置文件
- 一部高清电影在不同分辨率下文件大概各有多大
- 七章 札记--C++ primer 之旅
- UITextField exc_bad_access solution
- 想请一位在校学生开发程序,有时间和精力的举手哦
- Winform中listView控件从数据库中添加数据的方法
- iphone 开发环境大家
- 项目管理知识体系系指南学习总结(一)
- 2012-07-16
- hdu 2462
- 英语词汇6
- Snmp网络管理协议