【发布时间】:2013-12-24 12:55:20
【问题描述】:
这就是问题所在,当我尝试构建我的 xcproject xcode 时,在以下代码的第 3 行显示错误:
typedef struct
{
NSArray *array;
NSString *string;
}WYnot;
错误是:“ARC forbids Objective-C objects in struct”。
我该如何解决这个问题???是不是真的出错了?
【问题讨论】:
-
看看Transitioning to ARC Release Notes中的“ARC Enforces New Rules”。
标签: objective-c c xcode cocoa automatic-ref-counting