What does it mean when you put an @
before an integer in Objective-C?
Like so:
@4
What does it mean when you put an @
before an integer in Objective-C?
Like so:
@4
It is the NSNumber
literal. A shortcut for this:
[NSNumber numberWithInt:4];
var num = NSNumber(value: 4)
–
Tiein © 2022 - 2024 — McMap. All rights reserved.
NSNumber
. – Grievance@[a,b,c]
for an NSArray and several other enhancements, as shown in Martin R's link. – Thunder