标签:ons with span logs ring nbsp 文字 length font
- (NSUInteger)length;
- (unichar)characterAtIndex:(NSUInteger)index;
NSString *str1 = @"110"; NSString *str2 = @"10"; int res = str1.intValue + str2.intValue; NSLog(@"res = %i", res);
NSString *str1 = @"110"; NSString *str2 = @"10.1"; double res = str1.doubleValue + str2.doubleValue; NSLog(@"res = %f", res);
- (char *)UTF8String;
NSString *str = @"abc"; const char *cStr = [str UTF8String]; NSLog(@"cStr = %s", cStr);
char *cStr = "abc"; NSString *str = [NSString stringWithUTF8String:cStr]; NSLog(@"str = %@", str);
标签:ons with span logs ring nbsp 文字 length font
原文地址:http://www.cnblogs.com/xufengyuan/p/6623909.html