What would be an effective way to create an app with multiple pages, almost like a book? I want to create a small, but hopefully concise guide to keeping birds as pets. Nothing groundbreaking.
I imagine there would be a contents page and then perhaps 20-30 inidividual pages that deal with individual topics such as what you need, types of food, diseases etc
I have a little experience with dev, but in my journey so far I can only imagine creating a new class (.h/.m/.xib) for each page, building the content in IB and then linking them, thereby giving about 30 classes!
I am aware it’s possible to incorporate PDF’s, but is this an effective route? I’d like to build a little interactivity within the content, for example a searcvh bar and hopefully a ‘symptoms’ search that narrows down potential diseases.
I just need a little push in the right direction and I’ll learn from there. I just thought I’d ask for a little guidance beforehand.
Many thanks,
Ryan
For contents and topics take a look at UITableViewController. if you don’t know it already.
Don’t create 30 individual classes. The OO way could be to create a Page class and reuse that. Say someone tabs on ‘dog’ on your UITableViewController, you would then probably give a reference to the ‘dog’ content to your Page class in some way and push it onto the stack. Doing something like that you actually won’t be needing IB at all.
If you go for pdf, take a look at UIWebView, however, if you want the content to be interactive it’s probably not what you are looking for. I’d say that this part completely depends on how you want to represent your content.
I hope this gives you some kind of ‘push’ 🙂