I am using InAppSettingsKit to include preferences inside my app. I configured the preferences view using xcode's storyboard with the following simple steps:
1) I created a navigation controller and a table view controller
2) In the table controller I used the custom class: IASKAppSettingsViewController, as the controller.
Everything works as expected BUT now I am trying to reconfigure the app so that the settings that the user changed take effect after leaving the settings screen.
One tutorial I found says that I should:
Create a delegate that conforms to the IASKSettingsDelegate protocol. In the current version, -settingsViewControllerDidEnd: is the only required method.
so the delegate should have a method like:
- (void)settingsViewControllerDidEnd:(IASKAppSettingsViewController*)sender {
[self dismissModalViewControllerAnimated:YES];
[self reconfigure];
}
How can I create this delegate? I do not know where to put this method. I can see in the storyboard connection inspector that there is a space for the delegate but I have not been able to connect it. Please help me figuring this out because I have read tons of tutorials explaining delegates and they confused me more. I just need simple steps on how to create a delegate and connect it to the controller I created in the storyboard.
Thank you!