【发布时间】:2012-12-30 10:35:57
【问题描述】:
在 UITableView 中搜索没有结果后,我想将文本“No results”更改为“Not Match...”。但是我找不到在哪里。请帮助!
这里有一些代码:
- (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";
}
}
}
}
【问题讨论】:
-
不支持更改它的方法。不过看看stackoverflow.com/questions/3451945/…
标签: ios uitableview uisearchbar uisearchdisplaycontroller