Skip to content

Publish on iPad and iPhone

pieterclaerhout edited this page Nov 4, 2014 · 2 revisions

Baker 4.3

As of version 4.3, the Baker app is universal by default, support iPad and iPhone.

Introduction

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.