2013年4月29日
摘要: 一、NSString的创建 1 int main(int argc, const char * argv[]) 2 { 3 4 @autoreleasepool { 5 6 //这种方式不需要release 7 NSString *s1 = @"this is a string"; 8 NSLog(@"s1=%@", s1); 9 10 //这种方式需要release11 NSString *s2 = [[NSString alloc] init];12 ... 阅读全文
posted @ 2013-04-29 22:13 蓝易 阅读(147) 评论(0) 推荐(0) 编辑