How to calculate the size of HTML text to be drawn

How to create pages and display in UIwebView from HTML file?

How to calculate and draw the amount of text from an HTLM file. Pls suggest?

+2


a source to share


1 answer


Create NSURLRequest and load it into view. The view takes care of rendering the html automatically. Note that the url can be local, on a website, on a server, like php, whatever. I don't understand the second question. Please redefine this. Thanks.



// Request the contents of the abtWebView
NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.whatever.com/aDirectory/stuff.html"]];

// Load the webview
[self.theWebView loadRequest:request];

      

0


a source







All Articles