Allow only numbers for UITextField for iPad (Swift 4.x-5.x)
It’s easy for iPhone. Need only set it on your Storyboard: But it doesn’t work for iPad. So, time for coding. Below is a solution to this problem for Swift 4.x-5.0 which I use in my application. First of all, add UITextFieldDelegate here: import UIKit class ViewController: UIViewController,
...Далее