Swift 4中的iOS UIKit:在UITextField中建立字符数限制
预习
资源
项目
https://github.com/calmone/iOS-UIKit-component
参考
- shouldChangeCharactersIn
https://developer.apple.com/reference/uikit/uitextfielddelegate/1619599-textfield - 使用UIAlertController查看警报
https://medium.com/@calmone/show-alert-using-uialertcontroller-94676e015c30
快乐编码😄