views:

34

answers:

2

I have been able to set the color of the background of my UIWebView, but not the textcolor.

How can I set the text color?

I use this code

itemSummary.textColor = [UIColor colorWithRed:202 green:192 blue:146 alpha:0.75]; 

but get an request for member 'textColor' in something not a structure or union error.

Thanks

A: 

UIWebView doesn't have a method textColor. The only classes that I can see that do are: UITextField, UITableViewCell, UILabel and UITextField.

Because UIWebView inherits from UIView you can set the background color. To change the text you'll probably have to change the html of the page you're viewing.

No one in particular
+1  A: 

You can set the text color in HTML shown on UIWebView.

Shinya Miyazaki