我最近提交了一個應用程序審查的應用程序,但因爲使用私有API而被拒絕。我還是有點新iPhone發展,所以我在想,如果有人可以幫助我瞭解這部分是如何拒絕:setSearchDisplayController考慮private-API?
UISearchBar *searchBar = [[[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 0)] autorelease];
searchBar.showsCancelButton = NO;
searchBar.placeholder = @"Search Exhibitors";
[searchBar sizeToFit];
[self.tableView setTableHeaderView:searchBar];
UISearchDisplayController *searchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self];
[self performSelector:@selector(setSearchDisplayController:) withObject:searchDisplayController];
[searchDisplayController setDelegate:self];
[searchDisplayController setSearchResultsDataSource:self];
[searchDisplayController setSearchResultsDelegate:self];
[searchDisplayController release];
,他們提到的部分是「setSearchDisplayController」。我基於給出here的示例搜索UITableView。那麼任何人都可以解釋爲什麼這被認爲是一個私人API?