この質問はこれに関連していますが、より単純です。[私はこれらのばかげた質問の終わりに近づいている可能性があり、真剣なビジネスに取り掛かることができると思います:)]。
retain
プロパティがあり、次のように設定します。
UINavigationController *thing = [[UINavigationController alloc] initWithRootViewController:one];
// thing's retain count is one
navController = thing;
// thing's retain count is still one!
[thing release];
// now retain count is zero, which is wrong
保持カウントがゼロになる理由がわかりません。navController
と定義されている
@property (nonatomic, retain) UINavigationController *navController;
プロパティは保持カウントを 1 増やすべきではありませんか?