13
NSRange para Range <String.Index>
Como posso converter NSRangepara Range<String.Index>no Swift? Eu quero usar o seguinte UITextFieldDelegatemétodo: func textField(textField: UITextField!, shouldChangeCharactersInRange range: NSRange, replacementString string: String!) -> Bool { textField.text.stringByReplacingCharactersInRange(???, withString: string)