开发者

Error when pressing back button

开发者 https://www.devze.com 2022-12-20 02:15 出处:网络
I have a navigation based app with views that allow edit of text fieldsif I click on a text field and then press the back button before the done button I get.

I have a navigation based app with views that allow edit of text fields if I click on a text field and then press the back button before the done button I get.

CoreAnimation: ignoring exception: *** -开发者_运维知识库[CALayer setContactTelephone:]: unrecognized selector sent to instance 0x3c2f280

by textFieldDidEndEditing method does run, it attempts to resignFirstResponder. Has anyone seen this before.


Where in your code do you send the setContactTelephone: message to an object? That object is probably being deallocated prematurely (perhaps in viewWillDisappear:?), and the message is being sent to a CALayer that happened to take its place in memory.

0

精彩评论

暂无评论...
验证码 换一张
取 消