I am brand new to all this and am barely at the drag a button and connect it to the delegate stage.
I need to read HTML pages and display them. I've pawed through and Googled and there seem to be half a dozen or more ways to approach this - I'm wondering which would make the most sense.
I'm not implementing a browser. This is just snippets of HTML, say something like
The button would a normal Interface Builder piece. Click it and it's going to read and display something else from the file. Just a big loop, picking this or that, display, more buttons, on we go. Seems simple enough.
So, I found the stuff for opening and reading files. I've read my file and have that chunk of HTML in a string or an array and now it's time to write it to.. to what? What's the best choice here?
(and if you feel up to it, a little explanation of why sure wouldn't upset me)
Or.. would it be better to read the content over the Net? I'm thinking maybe 300K of content here total.. my impulse would be to bundle the file with the app but maybe I'm wrong??
I need to read HTML pages and display them. I've pawed through and Googled and there seem to be half a dozen or more ways to approach this - I'm wondering which would make the most sense.
I'm not implementing a browser. This is just snippets of HTML, say something like
Code:
<h2>Hey there!</h2>
<p>Welcome to blah-blah. Click the "Continue" button below to get started.</p>
The button would a normal Interface Builder piece. Click it and it's going to read and display something else from the file. Just a big loop, picking this or that, display, more buttons, on we go. Seems simple enough.
So, I found the stuff for opening and reading files. I've read my file and have that chunk of HTML in a string or an array and now it's time to write it to.. to what? What's the best choice here?
(and if you feel up to it, a little explanation of why sure wouldn't upset me)
Or.. would it be better to read the content over the Net? I'm thinking maybe 300K of content here total.. my impulse would be to bundle the file with the app but maybe I'm wrong??