Has anyone tried new syntax sugar introduced in Xcode 4.4 (iOS 5.1), like automatically calls @synthesize or Literal Syntax for NSArray ? They are quite handy.
But I can't get it right for this one , "use '[]' syntax to access". I tried following and they did not work. What did I do wrong ? Thanks.
NSArray *tmp = @[@"hello",@"world"]; //This one works fine
NSString *i = tmp[0]; // or tmp[@0]; this one does not work.