I solved the problem. I found a way to hide this shortcut bar programmatically:
if ([textView respondsToSelector:@selector(inputAssistantItem)]) { UITextInputAssistantItem *inputAssistantItem = [textView inputAssistantItem]; inputAssistantItem.leadingBarButtonGroups = @[]; inputAssistantItem.trailingBarButtonGroups = @[]; }
You can also determine the version of iOS if you need. It is important to know that the UITextInputAssistantItem class is a new class for iOS 9.
if ([[[UIDevice currentDevice] systemVersion] intValue] > 8.99) {
I hope this will be useful information!
source share