Created
June 22, 2018 02:56
-
-
Save jamesaq12wsx/e2c7847cbaa97ec55993eed4911c5831 to your computer and use it in GitHub Desktop.
[swift]建立App內部鍵盤->設定KeyboardAccessory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
//... | |
let keyboardAccessoryView = CustomAccessoryView(frame: CGRect(x: 0, y: 0, width: 30, height: 30)) | |
keyboardAccessoryView.delegate = self | |
textField.inputAccessoryView = keyboardAccessoryView | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment