Building iPhone Apps with HTML, CSS, and JavaScript pps

186 927 0
Building iPhone Apps with HTML, CSS, and JavaScript pps

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... the title, author, publisher, and ISBN For example: Building iPhone Apps with HTML, CSS, and JavaScript by Jonathan Stark Copyright 2010 Jonathan Stark, 978-0-596-80578-4.” If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at permissions@oreilly.com Safari® Books Online Safari Books Online is an on-demand digital library that lets you... experience reading and writing HTML, CSS, and JavaScript (jQuery in particular) I will be including some basic SQL code in Chapters 5 and 6, so a passing familiarity with SQL syntax would be helpful but is not required What You Need to Use This Book This book is going to avoid the iPhone SDK wherever possible All you’ll need to follow along with the vast majority of examples is a text editor and the most... development approaches, and present a crash course in the three core web technologies that are used in this book Web Apps Versus Native Apps First, I’ll define what I mean by “web app” and “native app” and consider the pros and cons of each What Is a Web App? To me, a web app is basically a website that is specifically optimized for the iPhone The site can be anything from a standard small-business brochure... immediately Initially, web apps were the only way to get a custom app on the device, which was fine by me because I’m a web developer Months later when the App Store was announced, I was jacked I ran out and bought every Objective-C book on the market Some of my web apps were already somewhat popular, and I figured I’d just rewrite them as native apps, put them in the App Store, and ride off into the sunset... that the user interface is built with web-standard technologies, it is available at a URL (public, private, or behind a login), and it is optimized for the specifics of the iPhone A web app is not installed on the phone, is not available in the iTunes App Store, and is not written with Objective-C What Is a Native App? In contrast, native apps are installed on the iPhone, have access to the hardware... wonderful family, friends, and clients for being understanding and supportive while I was chained to the keyboard And finally, Erica You make everything possible I love you! Preface | xv CHAPTER 1 Getting Started Before we dive in and start building applications for the iPhone, I’d like to quickly establish the playing field In this chapter, I’ll define key terms, compare the pros and cons of the two most... week or two of struggling with these variables, I found myself wondering why I was going to all the trouble After all, my web apps were already available worldwide—why did I care about being in the App Store? On top of all this, Apple can and does—reject apps This is certainly their prerogative, and maybe they have good reasons However, from the outside, it seems capricious and arbitrary Put yourself... 7,500 technology and creative reference books and videos to find the answers you need quickly With a subscription, you can read any page and watch any video from our library online Read books on your cell phone and mobile devices Access new titles before they are available for print, and get exclusive access to manuscripts in development and post Preface | xiii feedback for the authors Copy and paste code... web app and package it as a native app for the iPhone and other mobile platforms For me, this is the perfect blend I can write in my native language, release a product as a pure web app (for the iPhone and any other devices that have a modern browser) without going through Apple’s approval process, and use the same codebase to create an enhanced native version that can access the device hardware and potentially... I say “crash” course?) Intro to JavaScript At this point you should know how to structure a document with HTML and how to modify its visual presentation with CSS Now we’ll add some JavaScript to make it do stuff JavaScript is a scripting language that can be added to an HTML page to make it more interactive and convenient for the user For example, you can write some JavaScript that will inspect the . alt="" Building iPhone Apps with HTML, CSS, and JavaScript Building iPhone Apps with HTML, CSS, and JavaScript Jonathan Stark Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Building. Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Building iPhone Apps with HTML, CSS, and JavaScript, the image of a bluebird, and related. attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: Building iPhone Apps with HTML, CSS, and JavaScript by Jonathan Stark. Copyright 2010 Jonathan Stark, 978-0-596-80578-4.” If

Ngày đăng: 12/07/2014, 21:20

Từ khóa liên quan

Mục lục

  • Table of Contents

  • Preface

    • Who Should Read This Book

    • What You Need to Use This Book

    • Conventions Used in This Book

    • Using Code Examples

    • Safari® Books Online

    • How to Contact Us

    • Acknowledgments

    • Chapter 1. Getting Started

      • Web Apps Versus Native Apps

        • What Is a Web App?

        • What Is a Native App?

        • Pros and Cons

        • Which Approach Is Right for You?

        • Web Programming Crash Course

          • Intro to HTML

          • Intro to CSS

          • Intro to JavaScript

          • Chapter 2. Basic iPhone Styling

            • First Steps

              • Preparing a Separate iPhone Stylesheet

              • Controlling the Page Scaling

              • Adding the iPhone CSS

              • Adding the iPhone Look and Feel

              • Adding Basic Behavior with jQuery

Tài liệu cùng người dùng

Tài liệu liên quan