i have custom uilabel returns word touched. word triggers segue. label had been working fine, until yesterday when touches started causing app crash. touches not cause crash unless 1) on 2nd line of uilabel (not first) , 2) trigger segue. however, exception raised before segue ever triggered
the debug console not yield error. instead highlights these 3 lines of code:
nsstring *tappedstring = [label getwordcontainingcharacteratindex:charindex]; - (void)touchesended:(nsset *)touches withevent:(uievent *)event { if (!self.lasttouches) { return; } self.lasttouches = nil; uitouch *touch = [touches anyobject]; cfindex index = [self characterindexatpoint:[touch locationinview:self]]; if (![self.delegate label:self didendtouch:touch oncharacteratindex:index]) {//thread 1 : signal sigabrt [super touchesended:touches withevent:event]; } }
the other notable thread in spool
[uiwindow_sendtouchesfoeevent:], paused on 0x1bf860a: movl %edi, 0x10(%esp)
when hit continue get
libsystem_sim_c.dylib`__stack_chk_fail:
also in thread 1 ,
exc_bad_instruction (code=exc_i386_invop, subcode=0x0)
does know how fix?