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 UISearchDisplayController is show "No Results" label. Is there a way to make it go away and show something else?
views:
276answers:
2
+1
A:
search the Three20 source code for the string "No Results" and change it to @"".
coneybeare
2009-11-08 17:32:31
A:
To modify the "No Results" text you need to implement the titleForEmpty method in your TTTableViewDataSource.
- (NSString*)titleForEmpty {
return @"No names found";
}
featherless
2009-12-14 18:09:33
The thing is that this is not the same. NoData != "No Results" . it seems that the No Results comes internally from the Search Controller.
Yosi Taguri
2009-12-15 11:12:00
Ah, yes. I've edited the answer to point out the correct method for this. If you implement titleForEmpty, Three20 will work as expected.
featherless
2009-12-16 04:14:25