防止模式視圖控制器被解僱的原因是什麼?我發現dismissModalViewControllerAnimated並不總是工作?例如,這將不起作用:dismissModalViewControllerAnimated不總是有效?
SettingsViewController* settings = [[SettingsViewController alloc] init];
UINavigationController *settingsNav = [[UINavigationController alloc] initWithRootViewController:settings];
[navigationController presentModalViewController:settingsNav animated:YES];
[navigationController dismissModalViewControllerAnimated:YES];
謝謝!