通常,你不需要 2。你只需配置一个按钮动作来显示IASKAppSettingsViewController
。这可能看起来像这样(在本例中为模态演示):
appSettingsViewController = [[[IASKAppSettingsViewController alloc] initWithNibName:@"IASKAppSettingsView" bundle:nil] autorelease];
appSettingsViewController.delegate = self;
appSettingsViewController.showDoneButton = YES;
UINavigationController *aNavController = [[[UINavigationController alloc] initWithRootViewController:appSettingsViewController] autorelease];
[self presentModalViewController:aNavController animated:YES];
检查MainViewController.m
示例应用程序以了解不同的呈现方式(导航推送、tabBarItem 等)。