UITableView reloadData automatically calls resignFirstResponder

后端 未结 13 1429
天命终不由人
天命终不由人 2020-12-02 22:44

I have this UITableView with custom cells that can get only predefined values, therefore I use a UIPickerView as their inputView. All is jolly good until I edit a field and

13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 23:00

    I put my UISearchBar in its own section in a UITableView. When firing off the search, I made sure to only refresh the sections which do not contain the search bar.

    - (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation
    

提交回复
热议问题