I know I can do @3
instead of [NSNumber numberWithInt:3]
but what's the literal for [NSNumber numberWithUnsignedInteger:3]
?
You can use @3U
or @3UL
(or use the usual integer suffixes to change the type, e.g. @3ULL
for unsigned long long
).
See this page for more information on NSNumber literals.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With