开发者

How to integrate the InAppSettingsKit?

I have just downloaded the InAppSettingsKit and I'm trying to integrate it with my app however I'm having some issues with it since I can't find any documentation to help me out. So far I've done the following steps...

  1. I added the InAppSettingsKit directory to my Xcode project.
  2. I created a new UIViewController class for my settings (which I named settingViewController).

At this point I have become a bit stuck as I'm not sure what needs to be done. If someone could开发者_运维技巧 offer some steps on how to integrate this it would be really really helpful as I can't find any up to date documentation online.


Usually, you don't need 2. You just configure a button action to display IASKAppSettingsViewController. This could look like this (in this case for a modal presentation):

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];

Check MainViewController.m in the sample app for different ways to present it (navigation push, tabBarItem, etc.).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜