我刚刚下载了 InAppSettingsKit,我正在尝试将它与我的应用程序集成,但是我遇到了一些问题,因为我找不到任何文档来帮助我解决问题。到目前为止,我已经完成了以下步骤......
- 我将 InAppSettingsKit 目录添加到我的 Xcode 项目中。
- 我为我的设置创建了一个新的 UIViewController 类(我将其命名为 settingViewController)。
此时我有点卡住了,因为我不确定需要做什么。如果有人可以提供一些关于如何集成它的步骤,那将非常有用,因为我在网上找不到任何最新的文档。
最佳答案
通常,您不需要 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 等)。
关于ios - 如何集成 InAppSettingsKit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7704940/