objective c - iPhone app: How to display formatted text? -
I need to display some simple formatted text inside a small part of a scene. Background background should be transparent because Background background image.
How should I go about this? Could the web view control move? Thanks
a UIWebView
with a transparent background, should actually do the trick You can use something like:
UIWebView * formatted text = [[UIWebView alloc] initWithFrame: CGRectMake (0, 0, 200, 50)]; [Formatted Text Load HTML String: @ "My & lt; strong & gt; formatted & amp; lt; / strong & gt; text" baseURL: zero];
Be careful though: UIWebView
s are heavy objects that suck lots of memory, as well as they can take some time to load and render your text. You should release your label as soon as you do not need it.
Comments
Post a Comment