Objective-C 入门指南
目录
开始................................................................................................................................................... 1
下载这篇教程 ........................................................................................................................... 1
设定环境................................................................................................................................... 1
前言................................................................................................................................................... 1
编译 hello world .............................................................................................................................. 2
创建 classes ..................................................................................................................................... 2
@interface................................................................................................................................. 2
@implementation ..................................................................................................................... 2
把他们组合在一起 ................................................................................................................... 2
详细说明........................................................................................................................................... 1
多个参数................................................................................................................................... 1
构造子(Constructors) .......................................................................................................... 2
存取权限........................................................................................................................................... 2
Class level access ....................................................................................................................... 2
异常(Exceptions) ................................................................................................................. 4
继承、多态(Inheritance, Polymorphism)以及其他实体导向功能 ........................................... 8
Id 类型 ...................................................................................................................................... 8
继承(Inheritance) .............................................................................................................. 12
动态识别(Dynamic types) ................................................................................................. 15
Categories ............................................................................................................................... 17
Posing ...................................................................................................................................... 20
Protocols ................................................................................................................................. 21
内存管理......................................................................................................................................... 26
Retain and Release(保留与释放) ...................................................................................... 26
Dealloc..................................................................................................................................... 27
Autorelease Pool ..................................................................................................................... 31
Foundation framework classes ....................................................................................................... 33
NSArray ................................................................................................................................... 33
NSDictionary ........................................................................................................................... 35
优点与缺点..................................................................................................................................... 37
优点......................................................................................................................................... 37
缺点......................................................................................................................................... 37
更多资讯......................................................................................................................................... 37
评论3