Hide KeyBoard Shortcuts Bar on a iOS Custom Keyboard
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKPz5qhCkKGdpPJ0wkSm5JqlliSJoZg92-H4DuCruovhkVFuXerCphZt9wys_Gr3uwQyXObMHDwattjG5BSeCEl_LdDq1GPLct8qYyRyX4fZ9C93oW-TX7IGZLYDwqRgfFCXA4aUxkBAcS/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6VebLk98DYwS3K2nWZSCatab-q4HrSuRk91M4fQA8SHrKU_-x-lq1n780pSU_bIVLqMRv6pc3dhhh-Y2PUwBS9mM0BxvY1eM6XsM-e7Diu4z-wAoeDG0vB3-2_1U9RE8sO0lg4PHiIXbI/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
Hide KeyBoard Shortcuts Bar on a iOS Custom Keyboard
I am trying to build a custom keyboard for general use across many apps. I would like to hide the Keyboard Shortcuts Bar, but I am struggling to do this. All the posts on the forum that I have seen so far refer to using "inputAssistantItem.leadingBarButtonGroups.removeAll()" or "inputAssistantItem.leadingBarButtonGroups = " with a textfield.
However, as I want to use this generally as opposed to just within my own app, I can't access a textfield.
I am trying to use it with the view as shown below, but obviously not working. I have tried so many variations now that I am completely confused.
Here is a snippet of my code:
import UIKit
class KeyboardViewController: UIInputViewController {
@IBOutlet var nextKeyboardButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
let nib = UINib(nibName: "golfview", bundle: nil)
let objects = nib.instantiate(withOwner: self, options: nil)
view = objects[0] as! UIView;
//get rid of top bar of keyboard
view.inputAssistantItem.leadingBarButtonGroups =
view.inputAssistantItem.trailingBarButtonGroups =
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Comments
Post a Comment