Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

iOS 7 Change TextColor Of UITextView With AttributedText(modifies text color)

$
0
0

Hi,

I am having a hard time getting the text color of my UITextView to change without it changing the color of attributed text. It works fine if I set TextColor after setting AttributedText, but it loses the color attributed I added to some of the words. It works fine on iOS 6 with this code: Editable = true; TextColor = UIColor.White; AttributedText = textAttributed; Font = UIFont.FromName("Helvetica", 20f); Editable = false;

I have tried every variation possible with Editable and Selectable. I am considering just adding a white colour attribute to each word that does not meet the conditions for the other colour (purple). But I would expect it to have a performance issue as iOS 6 adds a lot of trash to attributed strings.

I have done many google searches on this with no luck, so any suggestions would be appreciated.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>