Monday, 19 August 2013

Different color for different words

Different color for different words

I have an NSString like below
Insight 1:
Scheduling Appointments: 4.4/5.0.
Category: Appointments; Keywords: Scheduling Appointments; Score: 0.0
Insight 2:
Office Environment: 4.7/5.0.
Category: Facilities/Environment; Keywords: Office Environment; Score: 0.0
Insight 3:
Wait Time: 10 â?? 15 minutes.
Category: Getting Timely Care; Keywords: Time; Score: 0.0
Insight 4:
Helps Patients Understand Their Condition: 4.7/5.0.
Category: Helps Patients Understand; Keywords: Understand Their Condition;
Score: 0.0
I need to give red color to Category: , Keywords: , Score: ,Insight I
tried with NSMutableAttributedString , but couldn't find a solution. How
can i achieve this

No comments:

Post a Comment