0
我已经实现了uitextfield委托方法textFieldToChange
只允许在文本字段中的某些字符。最近我更新了我的应用程序swift 3.1,现在我得到Type 'String.Index' (aka 'String.CharacterView.Index') does not conform to protocol '_Strideable'
错误。我attatching我的代码快照:Swift 3.1 UITextField类型'String.Index'(又名'String.CharacterView.Index')不符合协议'_Strideable'
请帮我把这个问题解决了。谢谢
很好。谢谢大卫。 – Ali