OC中结构体中使用OC类型的字符串会报错:
typedef struct card{
NSString *str;//报错
NSInteger age;
NSInteger num;
}
解决方式:
在NSString前面加上__unsafe_unretained
OC中结构体中使用OC类型的字符串会报错:
typedef struct card{
NSString *str;//报错
NSInteger age;
NSInteger num;
}
解决方式:
在NSString前面加上__unsafe_unretained