For a iPhone app I'm working on I want to use InAppSettingsKit to handle all the settings from within the app: http://www.inappsettingskit.com/ The sample app runs without problems but I'm not sure how to use it in my own app. There seems to be not documentation.
I have a tabbar item called settings that should display the InAppSettingsKit. When I set the NIB name of the tabbar item to "IASKAppSettingsView" I only get errors. I've looked at the sample code but I can't find out how they connected the view, as their NIB name is empty. Even if I put some meaningless code in that field it still shows the IASKAppSettingsView without errors at all.
Does anyone know how to connect this tabbar item to the IASKAppSettingsView or could point me at some documentation or tutorials as I wasn't able to find them. Thanks!
I solved it by extending
IASKAppSettingsViewController
like so:This class must override
viewDidLoad:
to manually instantiateself.tableView
with grouped style. Otherwise it will default toUITableViewStylePlain
.This way I can easily add it as a custom view controller as one of the tabs in my
UITabBarController
located in myMainWindow.xib
. No additional code necessary!I succeeded in doing what you need by copying and pasting some code from the sample app. Here is what worked for me:
Of course you need to properly release and retain your stuff. Notice that "My title" is overwritten by "Settings" which is I suppose set by IASK somewhere. What I use is the pushed-in-navigator version, there is also a modal way to do it in the sample.