How to present long text in iOS?

I am working on a small application, and I would like to link some short text descriptions, possibly with some images, in the help section. What control should be used to post this content? UILabel doesn't look too smart because it doesn't wrap text.

+8
user-interface ios iphone
source share
1 answer

I used UIWebView for this kind of thing.

I write out the help in HTML, including images, if necessary, and then load it into a UIWebView. It is quite flexible in terms of layout and quite trivial to implement:

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Instructions" ofType:@"html"] isDirectory:NO]]]; 

Just add the Instructions.html file to your application and you will be fine.

+9
source share

All Articles