I want to select and then highlight the same text on the label with a particular color.Is this be achievable with the help of gestures.
And i have to store the position of the highlighted part,even if the application terminas,so when the user comes back ,they can see that part highlighted
Thanks
Yes, you could use the gesture with your
UILabelfor highlighting text by either changing the background color or text color of yourUILabel.You could also store the current state of your
UILabelusingNSUserDefaults, and read it back we user launch your application.Declare an
isLabelHighlightedas BOOL forUILabelstate.To store state of your
UILabel.To access it, you should use below.