如果我有一个名为 的属性initFoo,如何使用 objc_method_family(none) 对其进行注释,以便在 ARC 下编译它时不会出现Init Methods must return a type related to the received type错误:
@property NSString *initFoo __attribute__((objc_method_family(none)));
不起作用,将返回神秘9 attribute only applies to void*错误。