I would like to be able to style the text in a UILabel using CSS. I know that you can use a UIWebView to load HTML to be formatted for display using
[webview loadHTMLString:myText baseURL:nil];
but I would like to simply style just a UILabel without relying on UIWebView. How can I do this?
Look at the open source project called FontLabel at http://wiki.github.com/zynga/FontLabel.
Although it won’t let you apply a CSS file to a UILabel, it does provide a subclass of UILabel that can use custom fonts and styling.
Of course you can also use the standard properties of UILabel like color, textAlignment, etc.