文字列数値変換例

Contributed by: akira on 2011年 5月30日(月) 16:01 JST

Last modified on

//文字列を数値に変換
int suuji = [ @"100" intValue ];

//数値を文字列に変換
NSString* moji;
moji = [ NSString stringWithFormat : @"%d", 100];
 

コメント (0件)

Geeklog Site - 文字列数値変換例
https://geeklog.craine.ne.jp/article.php?story=2011053016010460