2012年5月26日

Text Objective-C retainCount

摘要: NSString *str = [[NSString alloc] initWithFormat:@"123"]; NSLog(@"str declare time retain is %i",str.retainCount); lable.text = str; NSLog(@"str provide the lable text to set retain is %i",str.retainCount); [str release]; NSLog(@"str when release retain is %i" 阅读全文

posted @ 2012-05-26 23:37 记我一生琐碎事 阅读(146) 评论(0) 推荐(0) 编辑

导航