开发者

Reload UITableView during search

开发者 https://www.devze.com 2023-03-28 14:08 出处:网络
I have a tableview with data loaded from an ar开发者_运维知识库ray (from a plist) and i have also got the search bar working with NSPredicate. Only problem is that when i search the results show the o

I have a tableview with data loaded from an ar开发者_运维知识库ray (from a plist) and i have also got the search bar working with NSPredicate. Only problem is that when i search the results show the original data not the filtered data. Also when I click cancel it show the correct number of results but using the unfiltered data. How do I make the table view show the filtered data when the search bar is active and after kicking search?


Use [table reloadData] (or one of the other reload methods) to indicate to a table view that the source data has mutated.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号