istream 发表于 2014-7-20 23:45
设计模式好好看看,iPhone开发中有很多设计模式,也是一开始初学者不太容易弄明白的地方,有单例模式,MVC ...
我是一只小小强 发表于 2014-7-21 14:50
sharedManager=[[self alloc] init];
这里如果用 [[Singleton alloc]init],在下面重写alloc方法,alloc方法 ...
我是一只小小强 发表于 2014-7-21 14:50
sharedManager=[[self alloc] init];
这里如果用 [[Singleton alloc]init],在下面重写alloc方法,alloc方法 ...
阳光地带 发表于 2014-7-21 23:32
alloc方法是对象方法,不是类方法,所以通过对象调用,不能通过类名来调用。alloc方法不需要重写,可以重 ...
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |