21
Getting Started With iOS Development

Getting Started With iOS Development. July 7, 2011 –15 billion apps downloaded 425,000 apps in iTunes 100,000 native iPad apps Apple has paid

Embed Size (px)

Citation preview

Getting StartedWith iOS Development

July 7, 2011 –15 billion apps downloaded 425,000 apps in iTunes

100,000 native iPad apps Apple has paid developers over 2.5 Billion

Why Apple?

AppAdvice.com, http://appadvice.com/appnn/2011/07/apple-15-billion-apps-downloaded-and-counting

Requirements?

Mac running Snow Leopard Register to become an iPhone Developer (

http://developer.apple.com/iphone Free Standard ($99) Enterprise ($299)

Download SDK from Apple SDK 3.x free (the one we are using) SDK 4.x costs $5 from Mac App Store

More Requirements (Standard or Enterprise Developers)

Register for iTunes Connect and agree to Apple’s distribution agreement

Setup Your Team by adding to members and granting administrative privileges

Request certificates for development and later for distribution

Register all iPhones/iPod touches you are using for development

Register application identifiers

Programming Language

Uses C, C++ and Objective C 2.0 programming language The Objective C 2.0 Programming Language (

http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/ObjectiveC

Programming in Objective C 2.0 by Kochan Cocoa Touch application framework

Started with C in the 1970’s Subset of CSmall TalkObjective-C Licensed by NEXT Software Bought by Apple in 1996 NEXTSTEP environment used to create Mac

OS X Objective-C native development language of

Mac OS and iOS (iPhone, iPod Touch and iPad)

Why Objective-C?

iOS Versions

iOS 3.x (2009-2010) iPad iPhone 2 iPhone 3 and 3S

iOS 4.x (2010 to current) iPhone 3 will run some of

the features iPhone 3S (with limits)

and iPhone 4 will run OS 4.x

iPad 1 iPad 2 iPod Touch

iOS 5 (2011 - ?) iPhone 3S iPhone 4 iPad 1 iPad 2 iPod Touch 3G and

4G

http://en.wikipedia.org/wiki/IOS_version_history

What is new in OS 4.x?

Multi-tasking! ….sorta…. Folders to hold your apps iBooks included Create playlists on the phone Wireless keyboard support And other

features…(www.apple.com/iphone/softwareupdate)

What is New in iOS 5?

Notification Center iMessage Newsstand Reminders Twitter integration Improved camera Photo editing Safari and iCloud Wi-Fi Sync Does not require a computer with iTunes

iOS 4 Application Limitations

Only One Active Application. May under certain circumstances have an application running in the background.

Only One Window with a fixed size and location. Limited Access

Read and write only from your own Sandbox. Sandbox is where you are allowed to store documents, preferences, or other data.

Not able to do Administrative type tasks Limited Response Time

May have to shut down fast Must load quickly

Requires a computer with iTunes for software updates

Other iOS App Development Limitations

Limited Screen Size 320 x 480 px for iPhone and iPod Touch 640 x 960 px for Retina devices 1024 x 768 for iPad

Limited System Resources 256 MB or 512 MB of RAM (only half available for an app,

rest is OS upkeep) No swap file, very limited on available memory Energy usage limits

Using touch and drag, not text and scroll No garbage collection! Must handle manually Must deal with user behavior

What’s in the SDK? Xcode

Source editing Project management Documentation Debugger

Interface Builder Prototyping tool for designing interfaces Drag and drop connectivity with underlying code

Simulator Instruments

Limitations of SDK Simulator

based on Mac frameworks, not iPhone frameworks

missing some hardware features Accelerometer Camera

Core location is fixed on Apple headquarters not able to deal with push notifications or

keychain security does not process audio the same

Know Your Target Device!

Need to know characteristics of each generation of iPhone, iPad and iPod Touch and decide which you are going target when you develop your app.

Overview of iPod Touch, iPhone and iPad Generations

From Wikipedia:http://en.wikipedia.org/wiki/List_of_iOS_devices

Beginning iPhone 3 Development: Exploring the iPhone SDK

By: Dave Mark; Jeff LaMarchePublisher: ApressPublication Date: 15-JUL-2009

Sams Teach Yourself iPhone Application Development in 24 Hours, Second Edition

By: John RayPublisher: QuePublication Date: 15-OCT-2010

Beginning iPad Development for iPhone Developers: Mastering the iPad SDK

By: Jack Nutting; Dave Wooldridge; David MarkPublisher: ApressPublication Date: 31-JUL-2010

Book Resources—iPhone/iPad Development

• More iPhone 3 Development: Tackling iPhone SDK 3By: Dave Mark; Jeff LaMarchePublisher: ApressPublication Date: 15-JAN-2010

• iPhone Programming: The Big Nerd Ranch GuideBy: Joe Conway; Aaron HillegassPublisher: Big Nerd Ranch GuidesPublication Date: 13-APR-2010

• iPhone and iPad Apps for Absolute BeginnersBy: Dr. Rory LewisPublisher: ApressPublication Date: 07-JUN-2010

App SavvyBy: Ken YarmoshPublisher: O'Reilly Media, Inc.Publication Date: 20-OCT-2010

TapworthyBy: Josh ClarkPublisher: O'Reilly Media, Inc.Publication Date: 18-JUN-2010

Designing the iPhone User Experience: A User-Centered Approach to Sketching and Prototyping iPhone Apps

By: Suzanne GinsburgPublisher: Addison-Wesley ProfessionalPublication Date: 12-AUG-2010

Book Resources—iPhone/iPad Design and Business

• The Business of iPhone App Development: Making and Marketing Apps that SucceedBy: Dave Wooldridge; Michael SchneiderPublisher: ApressPublication Date: 17-MAR-2010

• Designing the Obvious: A Common Sense Approach to Web and Mobile Application Design, Second EditionBy: Robert Hoekman Jr.Publisher: New RidersPublication Date: 16-NOV-2010

• iPhone® and iPad™ Apps Marketing: Secrets to Selling Your iPhone and iPad AppsBy: Jeffrey HughesPublisher: QuePublication Date: 12-APR-2010

Programming in Objective-C 2.0, Second Edition

By: Stephen G. KochanPublisher: Addison-Wesley ProfessionalPublication Date: 29-DEC-2008Insert Date: 23-AUG-2008

Learn Objective-C on the MacBy: Mark Dalrymple; Scott KnasterPublisher: ApressPublication Date: 01-JAN-2008

Learning Objective-C 2.0: A Hands-On Guide to Objective-C for Mac and iOS Developers

By: Robert ClairPublisher: Addison-Wesley ProfessionalPublication Date: 23-JUL-2010

Book Resources—Objective C

• Objective-C for Absolute Beginners: iPhone, iPad, and Mac Programming Made EasyBy: Gary Bennett; Mitch Fisher; Brad LeesPublisher: ApressPublication Date: 31-AUG-2010

• A Beginners guide: Objective-C for iPhone DevelopersBy: James A BrannanPublisher: McGraw HillPublication Date: 05-May-2010

• Objective-C: Visual QuickStart GuideBy: Steven HolznerPublisher: Peachpit PressPublication Date: 17-FEB-2010

Cocoa Touch™ for iPhone® OS 3By: Jiva DeVoePublisher: John Wiley & SonsPublication Date: 16-NOV-2009

Cocoa® Programming for Mac® OS X, Third Edition

By: Aaron HillegassPublisher: Addison-Wesley ProfessionalPublication Date: 05-MAY-2008

Cocoa Programming: A Quick-Start Guide for Developers

By: Daniel H. SteinbergPublisher: The Pragmatic BookshelfPublication Date:23-April-2010

Book Resources—Cocoa Touch and SDK

• Learn Xcode Tools for Mac OS X and iPhone DevelopmentBy: Ian PiperPublisher: ApressPublication Date: 30-DEC-2009

• Xcode 3 UnleashedBy: Fritz AndersonPublisher: SamsPublication Date: 17-JUL-2008

iTunes for iPhone, iPod and iPad Apps By popular By category By release date Free vs paid apps

Mac App Store

Navigating the App Stores