简体   繁体   中英

Search display controller disappears on multiple clicks on cancel button

I have a UITableView in which i have added UISearchDisplayController on the header of the table view in xib. When i run the project and click on search bar textfield which show cancel button. When i click on cancel button multiple times frequently then UISearchBar is disappear from the header of the table view. You can download the sample app from below url.

https://www.dropbox.com/s/3ero6u76dceq4r7/SearchBarSample.zip?dl=0

Any help is much appreciated. Thanks!

You have taken the search bar inside tableview. Just take it out of the tableview. Search bar should be above in list. The problem will be resolved. enter image description here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM