ViewController *view=[[ViewController alloc] init];[self.navigationController pushViewController:controller animated:YES];[view release];
2 回答

智慧大石
TA貢獻(xiàn)1946條經(jīng)驗(yàn) 獲得超3個(gè)贊
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 回答
- 0 關(guān)注
- 344 瀏覽
添加回答
舉報(bào)
0/150
提交
取消