Help please! For two days I try to get this working. I integrated IASK with a TableViewController and IASKAppSettingsViewController as custom class. I followed the Sample App, but using a Storyboard and I inserted the ARC codes. I am also using IASK CustomSubviewController in my .plist, which worked from the very beginning without problems. None of the button works works, except a UI button that I added to the TableViewController. This is the code. Thanks for any hints. In h:
- (void)settingsViewController:(IASKAppSettingsViewController*)sender
buttonTappedForSpecifier:(IASKSpecifier*)specifier;
In m:
- (void)settingsViewController:(IASKAppSettingsViewController*)sender
buttonTappedForSpecifier:
(IASKSpecifier*)specifier {
if ([specifier.key isEqualToString:@"saveButton"]) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Exit Settings"
message:@"Did you enter all settings?"
delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil];
[alert show]
}
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (buttonIndex == 1) {
[[NSUserDefaults standardUserDefaults] synchronize];
exit(0);
}}
Thats from my Root~iphone.inApp.plist:
<dict>
<key>Key</key>
<string>saveButton</string>
<key>Title</key>
<string>Save all settings</string>
<key>Type</key>
<string>IASKButtonSpecifier</string>
</dict>