New Xcode 4.4 is out and it should support literals like
@42
@"String"
@23.0L
@{ @"key" : obj }
and
@[obj1, obj2]
and it should also support @YES
and @NO
, which isn't working when targeting latest iOS 5 (and prior).
After compiling it show the error message:
Unexpected type name 'BOOL': expected expression
I know you can fix it by typing @(YES)
and @(NO)
. But I want to know the reason why it isn't working as expected.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…