本帖最后由 Skee 于 2014-4-20 01:24 编辑
将基本数据类型转为NSString
//使用实例方法将任意数据类型转为string
NSString *number3 = [[NSString alloc] initWithForma:@"%f",_s_stayTime];
NSString *number4 = [NSString stringWithFormat:@"%f",_s_stayTime];
NSString *number5 = [[[NSNumberFormatter alloc] init] stringFromNumber:@"%@",number1]; |