9

Click here to load reader

xCode presentation

Embed Size (px)

Citation preview

Page 1: xCode presentation

iOSCocoa Touch

Media

Core Services

Core OS

Core OSOSX KernelMach 3.0BSDSocketsSecurityPower ManagementKeychain AccessCertificatesFile SystemBonjour

Page 2: xCode presentation

iOSCocoa Touch

Media

Core Services

Core OS

Core ServicesCollectionsAddress BookNetworkingFile AccessSQLiteCore LocationNet ServicesThreadingPreferencesURL Utilities

Page 3: xCode presentation

iOSCocoa Touch

Media

Core Services

Core OS

MediaCore AudioOpenALAudio MixingAudio RecordingVideo PlaybackJPEG, PNG, TIFFPDFQuartz (2D)Core AnimationOpenGL ES

Page 4: xCode presentation

iOSCocoa Touch

Media

Core Services

Core OS

Cocoa TouchMulti-TouchCore MotionView HierarchyLocalizationControlsAlertsWeb ViewMap KitImage PickerCamera

Page 5: xCode presentation

MVC

Controller

Model View

What your application is (but not how it is displayed)

How your Model is presented to the user (UI logic)

Your Controller’s minions

ACTION

Outlet

Delegate

Data Source

Page 6: xCode presentation

Objective C

• Superset of the ANSI version of the C• .h Header files• .m Source files• .mm Source files. A source file with this

extension can contain C++ code in addition to Objective-C and C code

• #import Include header files in your source code

Page 7: xCode presentation

A class declaration

Page 8: xCode presentation

Methods

- (void)insertObject:(id)anObject between:(id)aObject and:(id)bObject

[[myObject theArray] insertObject:[myAppObject objectToInsert] atIndex:0];

Page 9: xCode presentation

Class Defination@implementation MyClass - (id)initWithString:(NSString *)aName{ self = [super init]; if (self) { name = [aName copy]; } return self;}

+ (MyClass *)createMyClassWithString: (NSString *)aName{ return [[self alloc] initWithString:aName];}@end