iphone - App crashing with this error message - I cannot find anything about this after googling it- Can someone help please -
im not getting compile time errors nor comes when run build & analyze. @ run time app crashes when click uitextfield.
-[__nscftype textfielddidbeginediting:]: unrecognized selector sent instance 0x583cb90 *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[__nscftype textfielddidbeginediting:]: unrecognized selector sent instance 0x583cb90' 0 corefoundation 0x00fa25a9 __exceptionpreprocess + 185 1 libobjc.a.dylib 0x010f6313 objc_exception_throw + 44 2 corefoundation 0x00fa40bb -[nsobject(nsobject)doesnotrecognizeselector:] + 187 3 corefoundation 0x00f13966 ___forwarding___ + 966 4 corefoundation 0x00f13522 _cf_forwarding_prep_0 + 50 5 uikit 0x00394581 -[uicontrol(deprecated) sendaction:totarget:forevent:] + 67 6 uikit 0x00396e62 -[uicontrol(internal) _sendactionsforeventmask:withevent:] + 7 uikit 0x0039ce11 -[uitextfield willattachfieldeditor:] + 404 8 uikit 0x003aecdf -[uifieldeditor becomefieldeditorforview:] + 653 9 uikit 0x0039ef98 -[uitextfield _becomefirstresponder] + 99
chances either not retaining object assign delegate of uitextfield (e.g. don't assign outlet property declared retain
in ib), or calling release
or autorelease
on object not own or saved ivar.
the object gets disposed of, , later different object happens created @ same memory location. object, of course, doesn't implement uitextfielddelegate protocol, when text field tries send delegate messages it gives error instead. object not created @ same memory location, you'd crash exc_bad_access instead.
Comments
Post a Comment