... Apple’s iPhone technology
■
Examining the iPhone s specifications
■
Highlighting what makes the iPhone unique
11How the iPhone is unique
users. Google has also shown a notable uptick among iPhone ... of the new
3G iPhone and its public deployment of the
iPhone software development kit (SDK) promise to multiply the iPhone s success in the
future, with even higher numbers of iPhone sales predicted ... the iPhone output, but its input may be even
more innovative.
1.4.3 Input and iPhone mousing
As already noted, the iPhone uses a multi-touch-capable capacitive touch screen.
Users access the iPhone...
... the iPhone.
Method Type References
iPhone incompatible Web Brief mentions only
iPhone compatible Web Brief mentions only
iPhone friendly Web Chapters 3, 8
iPhone optimized Web Chapters 3, 8
iPhone ... development models
iPhone web apps represent a transition for iPhone developers. When you’re engaging
in simpler types of iPhone development—making existing web sites iPhone friendly or
iPhone optimized—you’re ...
pages that look great on the iPhone. They’ve probably inserted commands that deal
with the iPhone chrome and have thought about iPhone gestures. They may link in
unique iPhone style sheets when...
... experience for iPhone users through a page that has been
redisplayed to the point where it’s become an iPhone web app.
44 CHAPTER 3 Redeveloping web pages for the iPhone
from an iPhone. The easiest ... engaging in
some iPhone best practices, playing with the chrome, and looking at iPhone ges-
tures—you’ll have dramatically improved how your web pages work on an iPhone.
The ultimate in iPhone optimization ... nice. Making a page iPhone friendly is more about fixing problems than about
showing off the iPhone s strengths.
3.2.1 Avoiding missing iPhone functionality
Although the iPhone is often described...
... you can recognize iPhone touchscreen events.
Event Summary
touchstart
A finger touches the iPhone.
touchmove
A finger moves across the iPhone.
touchend
A finger leaves the iPhone.
touchcancel
The ... particularly useful on the iPhone, since gradients are
already a part of the look and feel of iPhone home page icons, and will make individ-
ual programs feel more like native iPhone programs.
The ... number of advantages, all of which you can make
use of on the iPhone. However, there’s one iPhone- specific trick you should consider:
iPhones uniquely might be connected to either a fast network...
... in an iPhone-
UI web app.
By now you might have some great ideas for how to turn your website into an iPhone web
app, but the idea of coding everything to look like and work like the iPhone ... mimicking
the look and feel of the iPhone s UI, but also its functionality.
The discussions that lead off the chapter, centering on the iPhone UI and the
iPhone s architectural paradigms, provide ... (Manning, 2008). The iPhone extension adds
a few common iPhone- related manipulations to jQuery. You can access them just by
including the appropriate JavaScript scripts (jquery .iphone. js, jquery.js)...
... quickly
port your iPhone graphics to those other browsers.
For now, however, Canvas is the last major tool in your iPhone web app toolkit. With
graphics, text, and a handful of iPhone
UI fundamentals ... overlap.
lighter
Blending choice Where the shapes overlap, the color value is added.
darker
Blending choice Where the shapes overlap, the color value is subtracted.
xor
Blending choice Where the shapes ...
particular note because gradients are used throughout the iPhone s user interface.
Thus, using gradients will be a notable step toward creating an iPhone- like interface
for your graphical web app....
... top of your iPhone.
Table 7.2 We can create a graphical orientation gauge in just a few minutes in Dashcode.
Step Description
1. Create a project. Select File > New Project.
Choose a Custom ... use with the iPhone. Under this new version of Dashcode, you can create web
applications intended to run not on a Macintosh but, instead, on an external website
for use with an iPhone.
Dashcode ... this time, Dashcode 2.0, which is the version that you’ll need to write iPhone
web apps, is only available as part of the iPhone
SDK. You should thus jump forward to
chapter 10 for some information...
... can make debugging on the iPhone easier.
Program Location
iPhone Debug http://code.google.com/p/iphonedebug/
iPhone Web Developer http://www.manifestinteractive.com /iphone/ #_Webdev
Listing 8.1 ... programs from gobbling
up an iPhone s battery, but you’re going to need to do your part too.
150 CHAPTER 8 Debugging iPhone web pages
8.3.1 Using iPhone Debug
Jon Brisbin’s iPhone Debug is a JavaScript ... the iPhone Simulator, our best advice for debugging directly with your
iPhone is: don’t do it.
Despite that admonition, you might have to if you don’t have access to a Mac or if
the iPhone...
... experience) to make the transition from creating iPhone- based web
pages to creating iPhone- based native apps. We’ve already seen it happen at iPhone
development camps. We also think there are ... development
isn’t the be-all and end-all of iPhone programming. There are some programs that
will just be better suited for native programming on the iPhone. Apple provides a
development platform ... working with in the
SDK, as Apple has provided numerous
frameworks to make your programming of the iPhone easier.
9.2.2 Messaging
If the object is the OOP equivalent of the variable, then the message...
... runtime.
At setup you can choose to create a navigational
hierarchy and push a user into it before he or she
takes any actions. You can see this in action in vari-
ous iPhone programs. Mail always ... dismissModalViewControllerAnimated:YES];
You could design your own modal view controllers for when you want to have users
make a choice before returning them to their regular program. More commonly, you’ll
use picker controllers ... it’s been our main goal to show you all the fun-
damentals before we set you lose in the wilds of iPhone programming so that you have
the building blocks that you need when you begin programming...
... coor-
dinate system of the application.
In testing, we discovered that when run on an iPhone (but not in the iPhone Sim-
ulator) the result could sometimes be out of bounds, so you need to double-check ...
F
.
18.6.2 Vibrating the iPhone
There’s another cool little feature that’s implicit in the System Sound Services inter-
face: you can use it to vibrate the user’s iPhone. This is done by handing ... You’re
placing buttons on the toolbar that call three methods:
choosePic:
,
takePic:
(when
a camera’s available), and
savePic:
.
choosePic:
C
and
takePic:
D
are similar methods. Each...
... information you’ll need to access Open
GL
through the iPhone
OS
.
The iPhone manages Open
GL
through
EAGL
, a class that interfaces between the
iPhone s views and Open
GL
’s drawing functions. ... how it’s integrated into the iPhone.
19.9 Summary
Graphics are one of the most important elements for making your iPhone projects
look great. Not only does the iPhone OS support high-quality ... is a fundamental technology on the iPhone. It’s what manages all the
nifty scrolls, pivots, zoom-ins, zoom-outs, and other bits of animation that make up the
iPhone user interface. As you’ve...
... your iPhone:
■
Ajax—Ajax is something that—as it turns out—you can largely ignore on the
iPhone. It’s usually used as part of a client-server setup, with
HTML
on the front
side, but the iPhone ... both
iPhone web development and the
SDK
.
There’s a Google Code project that presumes this sort of setup and includes a
sophisticated iPhone- side interface for viewing the map. It’s called iPhone ... that slogan to describe the iPhone, one of the
newest cutting-edge internet devices.
We opened this book by talking about the two different ways that you could write
iPhone programs: using web...
...
discussion
iPhone Atlas http://www.iphoneatlas.com iPhone news blog
iPhone Dev Forums http://www.iphonedevforums.com Forums for SDK or web discussion
iPhone in Action http://iphoneinaction.manning.com/ ... and iPhone discussion
Furbo.org http://furbo.org/ General blog that’s mostly iPhone
discussion
iDevKit http://idevkit.com/ Forums and news
iPhone Dev SDK http://www.iphonedevsdk.com/ Forums
iPhone ... Forums
iPhone Development http://iphonedevelopment.
blogspot.com/
Blog with extensive original content
iPhone Development Central http://www.iphonedevcen-
tral.org/
Online iPhone tutorials
Lap Cat Software...