根据Apple的ARC文档,使用ARC时开发软件的方式发生了相当大的变化.
作为Objective-C的完全初学者,开始使用ARC禁用会不会更好,因为它会让我对幕后发生的事情有更好的低级理解?或者,ARC基本上不赞成做事的"旧方式",以至于不值得花时间学习?
那么,有可能吗?
我多次收到此错误:
ARC forbids Objective-C objects in structs or unions
Run Code Online (Sandbox Code Playgroud)
例如这里:
typedef struct {
BOOL _field1;
union {
struct {
id _field1;
id _field2;
} _field1;
GSEventRef _field2;
} _field2;
} XXStruct_CKAdxD;
Run Code Online (Sandbox Code Playgroud)