会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
HAPENLY
博客园
首页
新随笔
联系
订阅
管理
2015年3月16日
[iOS]用instancetype代替id作返回类型有什么好处?
摘要: 苹果在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)
编辑
公告