iOS 7: on textfield did change the firstresponder my application is crashing

前端 未结 3 846
春和景丽
春和景丽 2021-01-14 20:13

I have editable tableview cell,and when i move from first textfield to last textfield in the table it is crashing.Code is.The below code is for textfield delegate

         


        
3条回答
  •  既然无缘
    2021-01-14 21:06

    May be this answer somewhat is stupid but the correct answer. I have checked for tableview cellforrowatindexpath and added an identifier

    static NSString *EditableTextFieldCellIdentifier = @"EditableCell";
    
    // using custom cells to show textfield and multiple columns
    EditableTextFieldCell *cellText = [tableView dequeueReusableCellWithIdentifier:EditableTextFieldCellIdentifier];
    

    And this fixed my problem and also crash.

提交回复
热议问题