-1
可能性の重複:
What does ‘release’ means in this situation on iPhone?作成した直後に2番目のViewControllerを解放するのはなぜですか?
私は2つのビューを切り替えるにthis tutorialを見ています。
私は第3の命令(奇妙なことに著者は説明していません!)を理解していません:なぜrelease
alloc
の直後ですか?
SecondViewController *aSecondView = [[SecondViewController alloc] initWithNibName:@"SecondView" bundle:init];
[self setSecondViewController:aSecondView];
[aSecondView release];
可能な複製:http://stackoverflow.com/q/3307816/1047258 – Novarg
私は保持の意味を知っていますが、ビューを正確に切り替えるというこのコンテキストではわかりません。 – user310291
secondViewControllerはretainプロパティです –