A structure used to describe a portion of a series—such as characters in a string or objects in an NSArray object.
How can I convert a UITextRange object to an NSRange? I've seen plenty of SO posts about going the other …
ios objective-c nsrange uitextrangeI have a collection of int64_t values that I need to make an index set out of. I previously …
objective-c nsrange nsindexsetI'm trying to add some fancy text to a label, but I've run into some problems with the NSMutableAttributedString class. …
objective-c macos nsattributedstring nsrangeGetting this error when checking the range for string characters... @objc func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: …
ios swift nsrangeHow can I select a string from the beginning until a specified character? For example, in the following a news …
ios objective-c nsstring substring nsrangeI need NSRange objects for the position of each uppercase letter in a given NSString for input into a method …
ios iphone objective-c nsstring nsrangeI have the following NSString: productID = @"com.sortitapps.themes.pink.book"; At the end, "book" can be anything.... "music", "movies", "…
ios objective-c nsrangeHi I'm trying to use addAttribute in Swift3. I want set bold only IDNAME. Here is what I am trying …
swift swift3 nsattributedstring nsrange addattributeI am trying to detect website URL's in my string and then doing some attribution string stuff like bolding it …
iphone cocoa-touch nsstring nsrangeI'm attempting to determine the indexes of occurrences of a given string in a String, then generate an NSRange using …
ios swift range nsattributedstring nsrange