How to hide Toolbar in newer iOS?

China☆狼群 提交于 2019-12-24 11:44:36

问题


I upgraded an older version(ios6) of a tabbed based app to latest iOS. The app uses my own customkeyboard like showing in the image attached. The tabbar supposed to stay on top of the keyboard, but with new iOS versions, I get this new toolbar by default. How do I get rid of this bar because it's sitting on top of my tabbar?


回答1:


UITextInputAssistantItem* item = [textField inputAssistantItem];
item.leadingBarButtonGroups = @[];
item.trailingBarButtonGroups = @[];



回答2:


The thing on the top is a suggestion list.

I just tested this in Xcode. The way to hide is to disable auto-correction. Do it programmatically or using storyboard by highlighting search bar.

searchBar.autocorrectionType = UITextAutocorrectionTypeNo;



来源:https://stackoverflow.com/questions/34696129/how-to-hide-toolbar-in-newer-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!