ios - Crash on self.view.endEditing with UITextField in tableviewheader -
i experience quite rare crash when call self.view.endediting(true)
. 0.3% of users affected. cannot reproduce crash on own device. anyway fix it.
i have uitableview contains uitextfield in tableviewheader, setup in viewdidload()
. have strong reference uitextfield. set delegate nil in deinit
.
when user taps row, call self.view.endediting()
, app crashes exc_breakpoint. app in focus when crashes. crash happens on iphone 5, 5c, 5s , 6 (ca. 80%)
i tried resignfirstresponder
same issue, verifying if textfield not nil before calling resignfirstresponder did not help.
so @vinodh checked viewcontroller in storyboard. there still connections searchviewcontroller, put out of use. deleting connections got me rid of crash.
Comments
Post a Comment