Question

iPhone OS Development

I need to set the names of UITableView cells to strings I get from a local "file.html" file. I know I will need to parse the HTML but I'm not worried about that at the moment.

If someone could show me some quick code that would set the first line of text in the html file and set it to an NSString variable, I think I could figure the rest out.

I really appreciate any help. Thanks.

Was it helpful?

Solution

You can use -stringByEvaluatingJavaScriptFromString: to directly manipulate the DOM nodes, but a better approach is to localize the whole file.html directly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top