static NSArray *strLabels = [NSArray arrayWithObjects:@"姓名", @"性别", nil];
编译器报错:initializer element is not constant
为什么会给这种报错?我并没有把strLabels声明成const类型的啊。
...全文
865打赏收藏
求解一个简单的问题
static NSArray *strLabels = [NSArray arrayWithObjects:@"姓名", @"性别", nil]; 编译器报错:initializer element is not constant 为什么会给这种报错?我并没有把strLabels声明成const类型的啊。