Recently want to learn the development of iOS, in NetEase Open class to find a course, ready to listen to this course, as a primer.
The course's name is: Stanford University Open Class: ipad and iphone App development (IOS5)
Links: http://open.163.com/special/opencourse/ipadandiphoneapplication.html
Today, I listened to the first lesson and probably said something like this:
-
IOS Overview
IOS devided 4 Layers:
-
Core Os:unix kernel and C API
-
Core service:object-oriented Service API
-
Multimedia:multimedia is embed into the system design
-
Cocoa Tough:user Interface Library, service library
-
Mvc
Devide all your classes into 3 camps:
Model:what your application does
Controller:how your model is presented in the UI
View:controller ' s minions, the controllers uses it to present the model on screen
The Model-view communication:
-
-
The controller can access the model
-
The model never communicate to the controller, it defines notification to broadcast things interesting to controller
The Controller-view communication:
-
-
-
Controllers uses an outlet to talk to view
-
View can ' t communicate to the controller via:
-
Target/action mechanism
-
Delegate (Should/will/did)
-
Controller works as data source, delegates for model
Controllers can talk to many models and other Controllers, but view can only is controlled by only one controller,and Neve R communicate to models.
3. Objective-c
A strict super-set of C
Header file As. h, source file as. m
#import works like #include, Smarter (good!)
@interface and @end in header file
@implementation and @end in source file
Public versus private is just it's in header or source file (good!)
Can has @interface in source file, be private
Arguments is interspersed in the name of the methods (great!)
(void) Orbitplanet: (Planet * aplanet): ataltitude: (double*) km;
@property (nonatomic) double topSpeed;
@synthesize topSpeed = _topspeed;
Call a method
[self topSpeed] = Self.topspeed
[Self. Nearestwormhole traveltoplanet:aplanet Atspeed:speed]
IOS Development Learning Notes