天天看點

iphone開發基礎之objective-c學習

【1】記憶體管理

1手動記憶體管理

1.1 dealloc函數

1.2自動釋放對象

1.3retain計數規則

1.4Accessor方法

2使用ARC

2.1強引用

2.2弱引用

【2】并發性

1多線程

1.1巨大的分歧

1.2簡單的Cocoa背景線程

2Scattered 更新版:Instruments 中的Time Profiling

3NSOperationQueue

3.1Scattered的多線程解決方案

3.2 線程的同步處理

【3】Target/Action

1一些NSControl子類的常見用法

1.1NSButton

1.2NSSlider

1.3NSTextField

2開始SpeakLine示例

3XIB檔案中的布局設定

4實作SpeakLineAppDelegate類

【4】Helper對象

1委托

2NSTableView及其dataSource

3使用者界面布局

4建立連接配接

5編輯SpeakLineAppDelegate.m檔案

5.1 在實作委托時的常見錯誤

5.2 對象委托

【5】鍵-值編碼和鍵-值觀察

1 鍵-值編碼

2 綁定

3 鍵-值觀察KVO

4 使對象的鍵可觀察

5 Properties

【6】Archiving

1 NSCoder和NSCoding

1.1 編碼

1.2 解碼

2 文檔架構

2.1 Info.plist和NSDocumentController

2.2 NSDocument

2.3 NSWindowController

3 儲存和NSKeyedArchiver

4 載入和NSKeyedUnarchiver

5 為檔案類型設定擴充名和圖示

【7】User Defaults

1 NSDictionary和NSMutableDictionary

1.1 NSDictionary

1.2 NSMutableDictionary

2 NSUserDefaults

3 設定Defaults

3.1 設定程式辨別符

3.2 為defaults的名字建立鍵

3.3 注冊defaults

4 讓使用者編輯Defaults

5 使用Defaults

5.1 禁用自動建立未命名新文檔

5.2 設定表格視圖的背景色

【8】Core Animation

1 Scattered

2 隐式動畫及action

【9】第14章 使用Notifications

1 Notifications 是什麼

2 Notifications不是什麼

3 NSNotification

4 NSNotificationCenter

5 釋出notification

6 注冊成為觀察者

7 當notification到達時怎麼處理

8 userInfo字典

【10】NSTimer

1 界面布局

2 建立連接配接

3 為TutorController添加代碼

【11】建立NSFormatters

1 簡單的格式化器類

1.1 建立ColorFormatter.h

1.2 編輯XIB檔案

1.3 NSColorList

1.4 在字元串中搜尋子串

1.5 實作基本的格式化器方法

2 NSControl類的Delegate

3 檢查部分字元串

4 傳回屬性字元串的格式化器