Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-13-2009, 01:44 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 61
Arrow Is it possible to change UITextView`s color in particular range?

Hi all,
I need to have a TextView with different colors, is it possible?
I have already successfully changed color of whole text using statement:
resultsTextView.textColor = [UIColor blueColor];
and then I`ve searched in the Developer Documentation, particularly in UITextView and UIColor, and I didn`t find anything about changing color in particular NSRange. So it would be great if somebody of you know how to do it.
(And I am very sory for all mistakes in my text, I can`t english as well)
!_UK@$ is offline   Reply With Quote
Old 12-13-2009, 02:37 PM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 580
Default

It's not possible. All text in a UITextView must have the same style. The only control that's capable of displaying any kind of rich text (where different portions of the text can have different styles) is UIWebView.
ChrisL is offline   Reply With Quote
Old 12-13-2009, 04:09 PM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 61
Default

Oh, thanks for reply.
!_UK@$ is offline   Reply With Quote
Reply

Bookmarks

Tags
range, uitextview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 261
19 members and 242 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, MACralik, prchn4christ, Rudy, Speed
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:51 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0