Continue to learn public lessons
The second lesson does a simple calculator as an example. Probably touch the following knowledge points:
Explaining the XCODE4, I looked at the latest download is XCode8.
Xcode created the project, singleviewapplication or some, the interface compared to XCODE4, more concise, operation and video interpretation of the same.
I've learned about MVC in the first lesson.
The view code does not see this feeling is not very good, especially the previous operation is to copy number button to the Operation button, the structure causes the Operation button is also connected to the digitpressed action, Do not know how to remove, had to regenerate again. There should be a way to change, but it is not known at the moment.
MVC Architecture:
V-storyboard, C-viewcontroller, model needs to be created by itself
The so-called outlet is actually a reference to the control inside the view, and the action is a callback method similar to Onclicklistener
The controller has to have model references, as well as outlet, should also have a view reference, but because the use of storyboard is not clear
Neither model nor view has a controller reference, and view communicates with the controller only through the action (that is, the callback method)
Several knowledge points of objective-c contact
NSObject, Java-like object, the base class for all classes
NSString, the String class, is an important basic class | @ "" Constant string
Nsmutablearray, array data structure
NSLog
Uibutton,uilable and other interface controls
@property @synthesize
Getter & Setter
Lazy Instanciation in Getter method
Object creation: Alloc & init: [[nsmutablearray alloc] init];
Basically follow the gourd painting scoop, relatively simple
Stanford Open Class: ipad and iphone App development (iOS5) Learning Note 2