UISearchBar 与 InputView
我正在为我的应用程序制作自定义键盘,它与 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 ?
I'm making custom keyboard for my app and it's working fine with UITextField. But UISearchBar don't support inputView
- (UIView *)inputView {
if(self.keyboard==nil)
{
self.keyboard=[[[MMKeyboard alloc] initWithNibName:@"MMKeyboard" bundle:nil]autorelease];
}
NSLog(@"HERE");
return self.keyboard.view;
}
How to replace with my custom UITextField in UISearchBar or how to implement inputView in UISearchBar ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如此代码所做的那样,但您更改了
inputView
:有关更多详细信息,请参阅此帖子:
iphone UISearchBar 完成按钮始终启用
As this code is doing but you instead change the
inputView
:See this post for more details:
iphone UISearchBar Done button always enabled
我解决如下
I solved like following