16.11.2015 Views

PG2

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

26 Chapter 2 PhoneGap Development, Testing, and Debugging<br />

On the iPhone simulator, the application will display the screen shown in<br />

Figure 2-2.<br />

Figure 2-2 ​ ​HelloWorld2 application running on an iOS simulator<br />

Within the section of the web page are two new entries: meta tags that<br />

describe the content type for the application and viewport settings.<br />

The content-type setting is a standard HTML setting and should look the same<br />

as it would for any other HTML 5 application.<br />

The viewport settings tell the web browser rendering the content how much of the<br />

available screen real estate should be used for the application and how to scale the<br />

content on the screen. In this case, the HTML page is configured to use the maximum<br />

height and width of the screen (through the width=device-width<br />

and height=device-height attributes) and to scale the content at 100% and<br />

not allow the user to change that in any way (through the initial-scale=1.0,<br />

maximum-scale=1.0, and user-scalable=no attributes).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!