91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

斯坦福大學公開課:iPad和iPhone應用開發(iOS5) 學習筆記 1

發布時間:2020-06-30 13:11:10 來源:網絡 閱讀:385 作者:孫洪波 欄目:移動開發

最近想學習下iOS的開發,在網易公開課上找了個課程,準備先聽一下這個課程,做為入門吧。

課程的名字是:斯坦福大學公開課:iPad和iPhone應用開發(iOS5)

鏈接:http://open.163.com/special/opencourse/ipadandiphoneapplication.html


今天聽了第一課,大概講了如下的內容:

  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 be controlled by only one controller,and never 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 is in header or source file (good!)

            can have @interface in source file, be private

         arguments are 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]

        



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

黄龙县| 海宁市| 汉阴县| 城固县| 二连浩特市| 县级市| 阜南县| 邢台市| 黑水县| 天长市| 板桥市| 内乡县| 察哈| 太原市| 东方市| 体育| 新河县| 汕头市| 临沧市| 肃南| 余江县| 花莲市| 广灵县| 枣强县| 大同市| 玛沁县| 炉霍县| 黔江区| 当涂县| 康平县| 旅游| 淳化县| 邛崃市| 宝应县| 高尔夫| 安西县| 确山县| 玉树县| 方正县| 易门县| 涞水县|