字符串的格式化
NSString *a = @"hEloow";//oc的字符串
char *s = "haha";//c的字符串
NSLog(@"%@ %s", a, s);
NSString *str = [NSString stringWithFormat:@"%@ %s", a, s];
NSLog(@"%@", str);



首页 我的博客
粤ICP备17103704号