19
iOS WorkShoP Xcode 4 iOS 5 : “A Primer”

iOS Work S ho P

  • Upload
    dysis

  • View
    42

  • Download
    0

Embed Size (px)

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

Citation preview

Page 1: iOS Work S ho P

iOS WorkShoP

Xcode 4iOS 5

: “A Primer”

Page 2: iOS Work S ho P

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

Page 3: iOS Work S ho P

Important Resources

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

Page 4: iOS Work S ho P

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

Page 5: iOS Work S ho P

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”

Page 6: iOS Work S ho P

X Platform

• Phone Gap, titanium, appcobra

Page 7: iOS Work S ho P

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

Page 8: iOS Work S ho P

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

Page 9: iOS Work S ho P

Augmented Reality

Page 10: iOS Work S ho P

Core Audio

• AudioPlayer• Audio QueueServices• Remote IO audio units

Page 11: iOS Work S ho P

Xcode 4

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

Page 12: iOS Work S ho P

About Xcode 4

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

Page 14: iOS Work S ho P

Memory allocation

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

initWithString:@"hello"];

Page 15: iOS Work S ho P

Navigationcontroller vs Tabbarcontroller

• dynamic vs static stack (list of controllers)

Page 16: iOS Work S ho P

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

Page 17: iOS Work S ho P

Declaring Properties

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

properties at compile time

Page 18: iOS Work S ho P

UIViewControllers

• Delegate methods

Page 19: iOS Work S ho P

Mutable vs Non Mutable objects

• NSArray• NSMutableArray