HTML 5 - Our Second iPhone App




CS185c

Chris Pollett

Feb 6, 2012

Outline

Objectice-C Types, Foundation Kit

Reference Counting

Quiz

Which of the following is true?

  1. In the AndroidManifest.xml file we can specify which files should be used as icons of our Android app.
  2. A desktop simulator for a phone runs the same machine code as that which runs on an actual phone.
  3. To extend a class in Objective-C, one uses the keyword "extends".

Introducing HTML 5

A Template HTML 5 Document with jQuery Mobile

<!DOCTYPE html>
<html> 
    <head> 
    <title>Hello HTML 5</title> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
    <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
</head> 
<body> 

<div data-role="page">

    <div data-role="header">
        <h1>My First HTML APP!</h1>
    </div><!-- /header -->

    <div data-role="content">    
        <p>This is an HTML 5 app.</p>        
    </div><!-- /content -->

</div><!-- /page -->

</body>
</html>

Hello HTML 5 app.

General formal of a document

The Head of a Document

The Body of a Document

Where to Find Examples

Starting a Second Project

A Second Project

Declaring Actions and Interfaces in Our Header