13
NSRange to Range <String.Index>
Come posso convertire NSRangein Range<String.Index>in Swift? Voglio usare il seguente UITextFieldDelegatemetodo: func textField(textField: UITextField!, shouldChangeCharactersInRange range: NSRange, replacementString string: String!) -> Bool { textField.text.stringByReplacingCharactersInRange(???, withString: string)