摘要:
1. 字符串常量NSString *s = @"test";NSLog(@"s:%lx",[s retainCount]); //ffffffffffffffff(即UINT_MAX ( Maximum value an `unsigned int'))因为"test"为字符串常量,系统不会收回,也不会对其作引用计数,即使我们对s如何retain或release。2. stringWithFormatNSString *s = [NSString stringWithFormat:@"%s", " 阅读全文
posted @ 2012-04-26 15:05
Hibernate4
阅读(524)
评论(0)
推荐(0)

浙公网安备 33010602011771号