更改为此屏幕
试试这个:
-(void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { NSLog(@"::::::: this is text field type %d",searchBar.keyboardType);
自然地总是给我回0,这是默认的键类型..因为它假设两者都是相同的键盘类型.
问候