01.02.2014 Views

Objective-C Fundamentals

Objective-C Fundamentals

Objective-C Fundamentals

SHOW MORE
SHOW LESS

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

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

316 APPENDIX C Alternatives to <strong>Objective</strong>-C<br />

Figure C.2 Spot the<br />

difference: the Facebook web<br />

application on the left and<br />

the Facebook native<br />

application. The web<br />

application lacks certain<br />

features, such as access to<br />

the camera and photo library.<br />

Developers can create Web 2.0 applications which look and behave just like the applications<br />

built into iPhone, and which can seamlessly access iPhone’s services, including making a<br />

phone call, sending an email and displaying a location in Google Maps.<br />

“iPhone to Support Third-Party Web 2.0 Applications,”<br />

(www.apple.com/pr/library/2007/06/11iphone.html)<br />

From this comment, it’s hard to imagine why you’d learn <strong>Objective</strong>-C—a technology<br />

that finds little use outside of Apple-based platforms. It appears that reusable skills<br />

such as HTML, CSS, and JavaScript are a better approach. An iPhone web application<br />

can be as simple as a website rendered by the iPhone’s Safari web browser. By altering<br />

layout, CSS styling, and so on, a web application can achieve fairly good parity with the<br />

look and feel of native applications, as shown in figure C.2.<br />

One advantage of web-based applications is their ability to automatically and instantaneously<br />

update to a newer version. When you update the source code hosted on your<br />

web server, all users are immediately upgraded; in fact, the user has no option to decide<br />

if or when they upgrade. On the negative side, however, the iTunes App Store provides a<br />

simple, economic model to allow you to monetize and charge for your applications.<br />

Finding a way to monetize web applications, which can’t be hosted in the iTunes App<br />

Store, is left as an exercise for the developer.<br />

C.3.1<br />

HTML5, CSS3, and other modern standards<br />

Web-based applications require a connection to the internet so their source code can be<br />

downloaded from the web server. This appears to rule out their use in scenarios such as<br />

airplane flights or subway travel, where radio transmitting devices are either prohibited or

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

Saved successfully!

Ooh no, something went wrong!