Search UITableView without Search Bar

时间:2015-06-26 09:56:46

标签: c++ ios xcode uitableview uisearchcontroller

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

1 个答案:

答案 0 :(得分:0)

解决了这个问题:

   [NSIndexPath indexPathForRow:[ObjectsAray indexOfObject:objetc] inSection:0]

如果您有1个section(0),这将从用于构建TableView的Array返回对象行的IndexPath ...