I have a project that contains some files that are using ARC, and some are not. The ones that are not have the compiler flag that disables ARC. That works fine.
I also want to make sure my library compiles for LLVM-GCC and also LLVM Compiler.
I have a property like this:
@property (strong, nonatomic) NSString *foo;
However, when I compile in LLVM-GCC, I get:
"Expected a property attribute before 'strong'"
If I change strong to retain, it compiles fine.
Strong also works fine in LLVM Compiler.
What am I missing? Isn't strong synonymous with retain?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…