NSIntegerをNSNumberに変換する - iOS開発メモ

サンプル

リテラル構文で書くのが簡単です。

NSInteger val = 100;
NSNumber *num = @(val);
NSLog(@"num = %@", num);

関連項目