Question

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.

Was it helpful?

Solution

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.).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top