This repository has been archived by the owner. It is now read-only.

Publish on iPad and iPhone

folletto edited this page Jan 10, 2012 · 1 revision

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.

Switch the project to the mode you want

From Xcode click to:

  1. The Baker project in the Project navigator (the top level blue icon)
  2. The application Target in the second column that appears there
  3. 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.

Build the book with Media Queries

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:

NOTE: this technique will work also if you want to publish additionally your book on the web itself.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.