Skip to content

Instantly share code, notes, and snippets.

@jamesaq12wsx
Created June 22, 2018 02:56
Show Gist options
  • Save jamesaq12wsx/e2c7847cbaa97ec55993eed4911c5831 to your computer and use it in GitHub Desktop.
Save jamesaq12wsx/e2c7847cbaa97ec55993eed4911c5831 to your computer and use it in GitHub Desktop.
[swift]建立App內部鍵盤->設定KeyboardAccessory
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