struct 如何存储指针类型的值时间:2023-03-09 15:06:15 通过 __unsafe_unretained标示符标示指针类型的值,否则xcode会报以下错误(前提,你使用的是ARC模式): ARC forbids Objective-C objects in struct 例如: typedef struct { __unsafe_unretained NSString *name; } myStruct;