[英]iOS app crashes when set UITextfield delegates
I dont know why the iPhone app crashes and it gives lldb error only.I tried to add the exception break point too. 我不知道为什么iPhone应用程序崩溃并且只给出lldb错误。我也尝试添加异常断点。
.h file: .h文件:
IBOutlet UITextField *etCountry;
.m file: .m文件:
etCountry.delegate=self;///
This is the line i am getting the crash.Please give me the solution for me 这是我遇到崩溃的那条线。请给我解决方案
Make sure your textfield has connection like this below images, 确保您的文本字段在图片下方具有这样的连接,
This is how 这就是
self.etCountry.delegate=self;
And add 并添加
@interface YourViewController ()<UITextFieldDelegate>
@end
You may check other threads , and their stack. 您可以检查其他线程及其堆栈。 My guess is that there is everything is fine with text field.
我的猜测是文本字段没有问题。 Seemingly there seems a network call also in the background, maybe a callback block is not in the right format.
似乎在后台也有网络调用,可能是回调块的格式不正确。 That caused similar "hidden" crashes to me.
那给我造成了类似的“隐藏”崩溃。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.