开发者

Is there a way to remove the "No Results" label from a UISearchDisplayController?

开发者 https://www.devze.com 2022-12-11 07:46 出处:网络
I have a three20 controller that is using the new sdk3 UISearchDisplayController. I also have a model that is loaded from the network, it seems that no matter what I do the default behavior for the UI

I have a three20 controller that is using the new sdk3 UISearchDisplayController. I also have a model that is loaded from the network, it seems that no matter what I do the default behavior for the UISear开发者_如何学运维chDisplayController is show "No Results" label. Is there a way to make it go away and show something else?


To modify the "No Results" text you need to implement the titleForEmpty method in your TTTableViewDataSource.

- (NSString*)titleForEmpty {
  return @"No names found";
}


search the Three20 source code for the string "No Results" and change it to @"".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号