【发布时间】:2010-12-28 07:36:11
【问题描述】:
可能重复:
What do the plus and minus signs mean in Objective C next to a method?
我想知道带 - 符号和带 +symbaol 的方法之间的区别。
例如-(NSMutableArray *)getContactsList; +(NSMutableArray *)getContactsList;
谢谢 普拉维娜。
【问题讨论】:
-
同[在Objective C中方法旁边的加号和减号是什么意思? ](stackoverflow.com/questions/2097294/…)。
-
一个是实例方法,另一个是类方法
标签: iphone objective-c