ios - Why does UITableView lock up when switching focus from UITextField to UITextView? -


i have uitableviewcontroller used present series of questions via custom uitableviewcells. each uitableviewcell has uitextfield data input , uitextview adding necessary notes relevant question. when uitextfield calls textfielddidendediting performs calculations , reloads tableview data. works great, except instances when user switches focus uitextfield uitextfield. in instances, app locks few seconds , cpu goes 100%. here relevant code:

func textfielddidendediting(textfield: uitextfield) {     //println("reloading table")     self.answer = textfield.text     self.updatecalculations()     self.tableview?.reloaddata() } 

this happens when moving uitextfield uitextview. moving uitextfield not cause issues, , moving uitextview uitextfield not cause issues.

if move of textfieldshouldendediting lockup stops, reloaddata doesn't seem fire. thought might calculation function using, if take out, problem still occurs. far can tell, there kind of hangup happens when calling reloaddata form didendediting while switching uitextview.

any thoughts?


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -