I'm new to iOS development. How to color up the text in UITextView within a specific range given? For example: ABCDEFG ** iOS ** 1234567 ** I just want to make the text within ** (iOS and 1234567) into red color. What is the best solution to deal with this problem and I'm using Swift 3? Thanks!!
Asked
Active
Viewed 28 times
0
-
1see https://developer.apple.com/reference/foundation/nsattributedstring – Jon Rose Mar 06 '17 at 07:35
-
http://stackoverflow.com/a/39640057/4601900 – Prashant Tukadiya Mar 06 '17 at 07:36