Stanford Open Class: ipad and iphone App development (iOS5) Learning Note 2

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.