Click here to load reader
Upload
simon-zhou
View
760
Download
1
Embed Size (px)
Citation preview
iOSCocoa Touch
Media
Core Services
Core OS
Core OSOSX KernelMach 3.0BSDSocketsSecurityPower ManagementKeychain AccessCertificatesFile SystemBonjour
iOSCocoa Touch
Media
Core Services
Core OS
Core ServicesCollectionsAddress BookNetworkingFile AccessSQLiteCore LocationNet ServicesThreadingPreferencesURL Utilities
iOSCocoa Touch
Media
Core Services
Core OS
MediaCore AudioOpenALAudio MixingAudio RecordingVideo PlaybackJPEG, PNG, TIFFPDFQuartz (2D)Core AnimationOpenGL ES
iOSCocoa Touch
Media
Core Services
Core OS
Cocoa TouchMulti-TouchCore MotionView HierarchyLocalizationControlsAlertsWeb ViewMap KitImage PickerCamera
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
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
A class declaration
Methods
- (void)insertObject:(id)anObject between:(id)aObject and:(id)bObject
[[myObject theArray] insertObject:[myAppObject objectToInsert] atIndex:0];
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