NSString* hoge = @"hogehoge";
NSString* str1 = [NSString stringWithFormat:@"%@",hoge];
NSString* str2 = [NSString stringWithFormat:@"%@%@",hoge,hoge];
NSLog (str1); // タブンhogehoge
NSLog (str2); // タブンhogehogehogehoge
stringWithFormat で解決
Go to list of users who liked
More than 5 years have passed since last update.
NSString* hoge = @"hogehoge";
NSString* str1 = [NSString stringWithFormat:@"%@",hoge];
NSString* str2 = [NSString stringWithFormat:@"%@%@",hoge,hoge];
NSLog (str1); // タブンhogehoge
NSLog (str2); // タブンhogehogehogehoge
stringWithFormat で解決
Register as a new user and use Qiita more conveniently
Go to list of users who liked