How can you search a UITableView
without using the search bar function (i.e. I want the code to search through and return the answer?) I would like to now at what IndexRow
the result sits within the TableView
.
I think the answer is UISearchController
...
Thanks
答案 0 :(得分:0)
解决了这个问题:
[NSIndexPath indexPathForRow:[ObjectsAray indexOfObject:objetc] inSection:0]
如果您有1个section(0),这将从用于构建TableView的Array返回对象行的IndexPath ...