ViewController *view=[[ViewController alloc] init]; [self.navigationController pushViewController:controller animated:YES]; [view release];
这段代码中的view是保存在内存中还是?
ViewController *view=[[ViewController alloc] init]; [self.navigationController pushViewController:controller animated:YES]; [view release];
这段代码中的view是保存在内存中还是?
ViewController *view=[[ViewController alloc] init]; // view retain count = 1;
[self.navigationController pushViewController:controller animated:YES]; // view retain count = 2;
[view release]; // view retain count = 1;
2 回答1k 阅读
1 回答1.1k 阅读✓ 已解决
1 回答2.7k 阅读
1 回答1.5k 阅读
1 回答1.4k 阅读
1.7k 阅读
1 回答1.1k 阅读
view是保存在内存中的