How to add “Done” button to Numpad in IOS 8 using Swift?
问题 It works fine with the default keyboard, but I cant get it working with the numpad. Any ideas? 回答1: As far as I know, you can't add the Done button on the keyboard part; you'd have add a inputAccessoryView to the UITextField or UITextView (if that's what you're using). Check the documentation for more info. Edit : Check this question for an example on how to do that. Edit 2 : Similar example in Swift. Edit 3 : Code from edit 2, as link may expire. override func viewDidLoad() { super