You can delete it using this
- (void)textFieldDidBeginEditing:(UITextField*)textField { if(SYSTEM_VERSION_GREATER_THAN(@"8.4")){ UITextInputAssistantItem* item = [textField inputAssistantItem]; item.leadingBarButtonGroups = @[]; item.trailingBarButtonGroups = @[]; } }
and of course you need to define the SYSTEM_VERSION_GREATER_THAN macro in the header to check the version, as this code will crash your application in iOS 8
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
enjoy:)
source share