Posts

Showing posts with the label ipad

How do I parse the toc.ncx file within an ePub document and display its hierarchy?

How do I parse the toc.ncx file within an ePub document and display its hierarchy? I have my application to read and display an ePub file almost ready. What I am looking now into is, if my table of contents for the book has a hierarchical structure for chapters, topics and subtopics, how do I parse the toc.ncx file (which has an XML structure), and load the data in a UITableView while preserving the hierarchical structure? 1 Answer 1 You can use NSXMLParser to parse the toc.ncx file. It's pretty straight forward, you can find the documentation here. Thanks for your solution. I am actually able to parse the file succesfully, but i am facing trouble while getting the hierarchical details of the file and presenting the same hierarchy in the UITableView format. – Vineet Kundu Mar 28 '12 at 12:57 ...

Making two storyboards for iOS (iPhone and iPad)

Image
Making two storyboards for iOS (iPhone and iPad) Is it possible to make only one application and inside of it make two storyboards, one for iPhone and one for iPad? I don't like the idea of running the app on iPad and clicking the 2x button. My idea was to create two storyboards and have a beginning class that would check if the device you are using is an iPhone or an iPad and then redirect to the according storyboard after. I think it is a good idea cause the code is the same. Yes. This is how Universal Apps work with Storyboards by default. – Robotic Cat Nov 28 '12 at 23:37 5 Answers 5 create two different storyboards and name them so they are easily specified which is which. Then click on the file that allows you to change settings for your ac...