简体   繁体   中英

Application crashes by tap on UITextField in ios

My application crashes when I tap on UITextField . When I present controller first time it works fine but when I dismiss controller and than present again tap on UITextField , give execution bad access error.

I know that this error comes when we access object which is already release but I check textfiled delegate method textfileddidbeginedit call and keyboarswillappear notification call but after that I get exac_bad_access error Please help i try to find solution every where but not get exect solution

Thanks in advance

It simply indicates that your controller object is getting released. So if you try to access any object of you controller it will crash, so modify your code in such as way that controller object should not get release whenever you try to access the object inside it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM