How to filter UICollectionView and keep keyboard up?

前端 未结 11 1606
旧时难觅i
旧时难觅i 2020-12-30 23:47

I\'ve added a UISearchBar to a UICollectionView and in the delegate searchBar:textDidChange: filter my model and call [collectio

11条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 00:48

    I just added

        [searchBar becomeFirstResponder];
    

    after calling

        [collectionView reloadData];
    

提交回复
热议问题