IOS Development Learning Notes

Source: Internet
Author: User

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:

  1. IOS Overview

    IOS devided 4 Layers:

    1. Core Os:unix kernel and C API

    2. Core service:object-oriented Service API

    3. Multimedia:multimedia is embed into the system design

    4. Cocoa Tough:user Interface Library, service library

  2. 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:

      1. The controller can access the model

      2. The model never communicate to the controller, it defines notification to broadcast things interesting to controller

The Controller-view communication:

        1. Controllers uses an outlet to talk to view

        2. View can ' t communicate to the controller via:

          1. Target/action mechanism

          2. Delegate (Should/will/did)

          3. 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

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.