NSIntegerをNSNumberに変換する - iOS開発メモ
ドキュメント
iOS開発メモ
NSIntegerをNSNumberに変換する
サンプル
リテラル構文で書くのが簡単です。
NSInteger val = 100; NSNumber *num = @(val); NSLog(@"num = %@", num);
関連項目
NSNumberをNSIntegerに変換する
doubleをNSNumberに変換する