2 a1394393468 a1394393468 于 2017.01.03 19:27 提问

简单的 IOS 语句理解
ios

最近在学ios 有两句代码没能理解 求大神解答一下

+ (instancetype)new __attribute__

((unavailable("[+new] is not allowed, use [+cameraWithRootView:andCaptureView:]")));

  • (instancetype) init attribute ((unavailable("[-init] is not allowed, use [+cameraWithRootView:andCaptureView:]")));

1个回答

hi_chen_xingwang
hi_chen_xingwang   Rxr 2017.01.04 10:22
Csdn user default icon
上传中...
上传图片
插入图片