How can I show done button on the decimal pad keyboard?
问题 I'm trying to learn Swift and I've done on the view screens. But as you can understand more easily by checking the screenshot, when I enter a value into a text field, there isn't any done button showing up so I can not hide the keyboard from the screen. And that makes it impossible to press the submit button which is located bottom of the screen view. 回答1: Firstly, create a new Swift File . Add this to the file : import Foundation import UIKit extension UIViewController{ func toolBar() ->