Learn the distinguishing language features of OC They differ substantially in their han...
![240](https://cdn2.jianshu.io/assets/default_avatar/5-33d2da32c552b8be9a0548c7a4576607.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
Learn the distinguishing language features of OC They differ substantially in their han...
Familiarize yourself with OC syntax. Write some classes and properties from scratch In ...
Master how to write and call methods in OC. Build a functional game. 1.Method Definitio...
1~4:Terminal中輸入命令subl打開Sublime Text5:Sublime Text安裝Swift包6:配置Git的文本編輯為Sublime Text 1.下載...
1.OC特性 (1)OC方法:對象方法(-),類方法(+) 1.對象方法:-(returnType)initWithString:(NSString *)string; 2....
6.OC 手動內(nèi)存管理 OC 內(nèi)存管理原則: 只要使用 alloc, new, copy, mutableCopy, retain 開頭的方法將一個(gè)對象的地址賦給一個(gè)指針變量...
11.self 和 super self代表一個(gè)指針喂急,super是一個(gè)編譯器指示符囊嘉,self 和 super 都指向的都是相同的消息接收者温技,super通常代表父類,self通...
15. 數(shù)據(jù)持久化 數(shù)據(jù)持久化方式: plist:屬性列表plist 文件的常見操作 NSUserDefaults (用戶偏好設(shè)置)基本操作 歸檔和解檔基本操作 在解檔的時(shí)候...
extern :可置于變量或者函數(shù)前扭粱,以表示變量或者函數(shù)的定義在別的文件中舵鳞。提示編譯器遇到此變量或函數(shù)時(shí),在其它模塊中尋找其定義琢蛤,另外蜓堕,extern也可用來進(jìn)行鏈接指定。 i...