ios work s ho p

Post on 22-Feb-2016

41 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

iOS Work S ho P. : “A Primer”. Xcode 4 iOS 5. Objective-C. iOS applications are written in Objective-C language using the Cocoa Touch library Objective-C is a simple extension of the C language Cocoa Touch is a collection of Objective-C classes. Important Resources. iOS Dev Center - PowerPoint PPT Presentation

TRANSCRIPT

iOS WorkShoP

Xcode 4iOS 5

: “A Primer”

Objective-C

• iOS applications are written in Objective-C language using the Cocoa Touch library

• Objective-C is a simple extension of the C language

• Cocoa Touch is a collection of Objective-C classes

Important Resources

• iOS Dev Center• Objective-C a primer• iOS developer reference library• Stackoverflow

Course outlineDay 1• Xcode brief• A simple application (UIViewController)• UITableViewController• Distribution and Deployment• Testing and Debugging

Day 2• Tab bar - Navigation Application (UITabBarController, UINavigationController)• Core Location• Map Kit• UIGestures

• video

Some other notes

• iOS apps are built for optimized visual appeal• Forget about staying put• There is no need to learn everything, only

what you need• You are not always the first one to ask “that

question”

X Platform

• Phone Gap, titanium, appcobra

Some questions to think about

• Free/Paid?• Accelerometer/compass sensors support?• In-App Purchase?• Push Notification?• AR• VR, Core Graphics, games, fast 2D graphics• Videoplayer• CG Transformation, animation

• Audio Processing/noise filtering?• Vibration support?• Camera features?

Augmented Reality

Core Audio

• AudioPlayer• Audio QueueServices• Remote IO audio units

Xcode 4

• IDE for Mac OS, iOS application development• Latest version of Xcode to-date: Xcode 4

About Xcode 4

• StoryBoarding• ARC memory management• Integrated Interface Builder – xib,nib files• Integrated instruments debugging tools• Code Signing• Application Loader• iPhone / iPad Simulator

Memory allocation

• Stack based/Heap Basedstack based : NSString *mystring = @"mystring";heap based :NSString *mystring=[[NSString alloc]

initWithString:@"hello"];

Navigationcontroller vs Tabbarcontroller

• dynamic vs static stack (list of controllers)

Methods

• + class methods (static methods) does not require class to be instantiated to be called

• instance methods - require an instance, called from the instance

• + does not mean public for public you can use @public, buy default all methods are private

Declaring Properties

• @property is shortcut to declaring properties• @synthesize is shortcut to implementing the

properties at compile time

UIViewControllers

• Delegate methods

Mutable vs Non Mutable objects

• NSArray• NSMutableArray

top related