ARC forbids Objective-C objects in structs or unions despite marking the file -fno-objc-arc
问题 ARC forbids Objective-C objects in structs or unions despite marking the file -fno-objc-arc? Why is this so? I had the assumption that if you mark it -fno-objc-arc you don\'t have this restriction. 回答1: If you got this message try __unsafe_unretained. It is only safe, if the objects in the struct are unretained. Example: If you use OpenFeint with ARC the Class OFBragDelegateStrings says this error in a struct. typedef struct OFBragDelegateStrings { NSString* prepopulatedText; NSString*