You can pass your textfield name in place of userNameTextField for which you want to remove shortcut bar.
UITextInputAssistantItem* item = [userNameTextField inputAssistantItem];
item.leadingBarButtonGroups = @[];
item.trailingBarButtonGroups = @[];
More Related Contents:
- Swift – how to read data from many UITextFields which generate data by UIPickerView [closed]
- Transport security has blocked a cleartext HTTP
- How do I load an HTTP URL with App Transport Security enabled in iOS 9? [duplicate]
- How to input currency format on a text field (from right to left) using Swift?
- How can I add NSAppTransportSecurity to my info.plist file?
- iPhone UITextField – Change placeholder text color
- allowsBackgroundLocationUpdates in CLLocationManager in iOS9
- Disable UIScrollView scrolling when UITextField becomes first responder
- Unexpected CFBundleExecutable key
- Blank space at top of UITextView in iOS 10
- Is it possible to change color of single word in UITextView and UITextField
- Display datepicker on tapping on textfield
- Core Data – Failed to load optimized model at path
- Enable copy and paste on UITextField without making it editable
- UITextField border color
- hide keyboard for text field in swift programming language
- the behavior of the UICollectionViewFlowLayout is not defined, because the cell width is greater than collectionView width
- Using “Next” as a Return Key
- Swift – validating UITextField
- Is there a way to test my Xcode 7.2-compiled app with iOS 9.3?
- iOS9 does not load insecure resources from a secure page (SSL/HTTPS)
- Formatting a UITextField for credit card input like (xxxx xxxx xxxx xxxx)
- Synchronous URL request on Swift 2
- Disabling automatic scrolling of UITableView when editing UITextField inside UITableViewCell
- This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes
- self.delegate = self; what’s wrong in doing that?
- How to dismiss keyboard iOS programmatically when pressing return
- Programmatically Select all text in UITextField
- iOS9 Swift File Creating NSFileManager.createDirectoryAtPath with NSURL
- iOS9 ATS: what about HTML5 based apps?