标签:
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText // called when text changes (including clear)
{
if (searchBar.text.length > IMPUT_MAX){
searchBar.text = [searchBar.text substringToIndex:15];
}
}
标签:
原文地址:http://www.cnblogs.com/KiVen2015/p/5791455.html