instancetype

instancetype在类型表示上,跟id一样,可以表示任何对象类型

instancetype只能用在返回值类型上,不能像id一样用在参数类型上

instancetype比id多一个好处:编译器会检测instancetype的真实类型

posted @ 2016-12-03 21:33  iFat  阅读(342)  评论(0编辑  收藏  举报