摘要: 苹果在iOS 8中全面使用instancetype代替id Steven Fisher:只要一个类返回自身的实例,用instancetype就有好处。 @interface Foo:NSObject - (id)initWithBar:(NSInteger)bar; // initializer + 阅读全文
posted @ 2015-03-16 20:05 ZPengs 阅读(273) 评论(0) 推荐(0) 编辑