-
Notifications
You must be signed in to change notification settings - Fork 101
Publish on iPad and iPhone
As of version 4.3, the Baker app is universal by default, support iPad and iPhone.
Baker allows you to publish on the iPad, but if you want to you might want to publish on the iPhone only, or both of them. Doing this is quite simple and requires only two steps.
From Xcode click to:
- The Baker project in the Project navigator (the top level blue icon)
- The application Target in the second column that appears there
- Select the "Summary" tab
There you can select under iOS Application Target the target Device, between:
- iPhone
- iPad
- Universal
This option defines on which kind of device the application will run.
Then you have to build the book in order for it to work on the specific device. If you are building for only one device is simple, you just have to prepare the HTML pages to work at that screen size.
Instead, if you are building an Universal application for both iPad and iPhone you need to use some CSS/JavaScript techniques, mostly based on the CSS Media Queries in order to adapt to different screen sizes. This is by the way the same technique you should use to make your book work both in portrait and landscape (see this tutorial).
One of the best ways to approach this is to use techniques that falls under the umbrella of Responsive Design.
Here some tutorials:
- Responsive Web Design, by Ethan Marcotte
- Media Queries documentation on Mozilla Wiki
NOTE: this technique will work also if you want to publish additionally your book on the web itself.