- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
if (range.location == 0 && range.length != 0) {
self.tableView.hidden = YES;
}else{
self.tableView.hidden = NO;
[self networkSearchWordWithRemove:YES];
}
return YES;
}
textField Length = 0 不显示 length > 0 显示
最新推荐文章于 2021-01-27 14:03:53 发布