问题
What does it mean when you put an @
before an integer in Objective-C?
Like so:
@4
回答1:
It is the NSNumber
literal. A shortcut for this:
[NSNumber numberWithInt:4];
来源:https://stackoverflow.com/questions/17629874/what-does-it-mean-when-you-put-an-before-an-integer-in-objective-c