问题
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