我正在为我的应用程序制作自定义键盘,它与 UITextField 一起工作正常。但是 UISearchBar 不支持 inputView
- (UIView *)inputView {
if(self.keyboard==nil)
{
self.keyboard=[[[MMKeyboard alloc] initWithNibName:@"MMKeyboard" bundle:nil]autorelease];
}
NSLog(@"HERE");
return self.keyboard.view;
}
如何在 UISearchBar 中替换为我的自定义 UITextField 或如何在 UISearchBar 中实现 inputView ?