摘要: 1.NSRange1 typedef struct _NSRange { 2 NSUInteger location; 3 NSUInteger length; 4 } NSRange;location 位置length 长度2.NSPoint / CGPoint1 struct CGPoint... 阅读全文
posted @ 2015-11-01 01:15 GXcoder 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.基本数据类型与字符串的相互转换 1.1基本数据类型转换到NSString 1 // 1 int -> 转换成NSString 2 // 5 @"5" 3 int age = 18; 4 NSString * str = [[... 阅读全文
posted @ 2015-11-01 01:06 GXcoder 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.创建字符串 1 // 1 直接创建字符串 2 NSString * str = @"abc"; 3 4 // NSString * stra = [[NSString alloc] initWithString:@"def"]; 5 ... 阅读全文
posted @ 2015-11-01 00:29 GXcoder 阅读(180) 评论(0) 推荐(0) 编辑