ios 5 UISearchDisplayController crash

前端 未结 4 1845

I am implementing a UITableView with UISearchDisplayController in xcode 4.2. UITableView & UISearchDisplayController are created in StoryBoard. I set the Cell Identifier

4条回答
  •  星月不相逢
    2020-12-08 21:17

    You can in

    - (void)searchDisplayController:(UISearchDisplayController *)searchDisplayController didLoadSearchResultsTableView:(UITableView *)searchResultsTableView

    do

    [searchResultsTableView registerNib:[UINib nibWithNibName:@"someNibName" bundle:nil] forCellReuseIdentifier:@"yourReuseId"];

    Then you're able to use in

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    the normal

    [tableView dequeueReusableCellWithIdentifier:

提交回复
热议问题