Apple iPhone and iPhone SDK

Contreras, Paul Vincent Ngo, Carlson

What is an iPhone
y

The Apple iPhone is/has a:
Multimedia/internet-enabled phone Multi-touch (revolutionary new UI) Mobile telephone Camera Multimedia player Email Text messaging Web browsing Wireless connectivity

What¶s with the iPhone?
50,000,000 iPhone & iPod touch sold y 2,000,000,000 downloaded applications through AppStore y More than 125,000 official developers y iPhone represented 50% of US smartphone usage, followed by RIM and Android devices
y

What¶s in an iPhone?
y y y y y y y y y

Samsung-powered CORTEX-A8 Microprocessor Cellular 3G Wi-Fi Bluetooth GPS Accelerometer Magnetometer Ambient Light Sensor Proximity Sensor

Which Type of Apps?
Web applications y Native applications
y

Layers of the iPhone OS

Layers of the iPhone OS
y

Cocoa Touch Layer
It comprises the key frameworks that provide the infrastructure you need to implement applications in the iPhone OS Examples: UIKit Framework, Apple Push Notification Service

y

Media Layer
The graphics, audio and video technologies

Layers of the iPhone OS
y

Core Services Layer
Provides the fundamental system services that applications use Examples: Address Book, In App Purchase, SQLite

y

Core OS Layer
Encompasses the kernel environment, drivers and basic interfaces of the OS

Getting Started with the SDK
Buy a Mac with at least a Mac OS X Leopard y Get an Apple Developer Program account y Download the Apple iPhone SDK y Install and Wait y Search XCode in your Applications y Start coding!
y

Things You Need to Know
Objective C y XCode y Interface Builder y MVC Model
y

Things included in the SDK
XCode y Debugger y iPhone Simulator y Static Analyzer y Performance Tool y Interface Builder
y

Sample Code

iPhone Program

demo

Now you¶re done programming, what¶s next?

What¶s Next
y

Deploy your program to the iPhone itself
Pay $99 or $299 to Apple Inc. annually depending on which developer program you select

y

Publish your application
Send your application to Apple to publish it at the Apple Store 30% of the sales go to Apple

Do¶s and Don¶ts
Forget the existence of ³Google Android´ y Don¶t think about pornography y Don¶t think about making programs that will invade user privacy y Don¶t think about making malicious programs
y