在UITableView中搜索沒有結果之後,我想將文本「No results」改爲「Not Match ...」,但是我找不到where.Please help!在tableview中搜索時如何更改文本「無結果」?
下面是一些代碼:
- (void)searchBarTextDidEndEditing:(UISearchBar *)searchBar{
if ([self.webSearchData count] == 0) {
for (UILabel *label in self.searchTable.subviews) {
if (label.text = @"No Results") {
label.text = @"Not Match";
}
}
}
}
沒有改變它沒有支持的方法。但檢查了這一點http://stackoverflow.com/questions/3451945/uitableview-change-no-results-message – Breakpoint