I was looking at a recent post that had this snippet of code in it:
NSDictionary *attrs =
@{ NSForegroundColorAttributeName : [UIColor grayColor],
};
NSString *currentRank = @"Sample text";
[currentRank drawAtPoint:CGPointMake(100, 100) withAttributes:attrs];
I'm very used to strings with the @ in front of them in iOS (e.g. @"This is some constant text."
). But I've never seen an @ in front of a braced structure before (Maybe I've been out of "the loop"...or was never in it ;).
Can somebody tell me what the @{ } structure means in iOS?