What is the Swift constructor for the code below?
NSMakeRange(0, textfield.text!.characters.count)
What is the Swift constructor for the code below?
NSMakeRange(0, textfield.text!.characters.count)
The modern Swift constructor for this is NSRange(location:length:)
.
NSRange(location: 0, length: textfield.text!.characters.count)
© 2022 - 2024 — McMap. All rights reserved.