Contact [gravityform id=1 name=Contact title=false description=false ajax=true] Share this:Click to share on LinkedIn (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Like this:Like Loading...
Hi , I basically want to do the same thing you did with InAppSettingsKitt but I have been facing some hurdles. I have a main controller where I have the following method: – (void)settingsViewController:(IASKAppSettingsViewController*)sender buttonTappedForKey:(NSString*)key { if ([key isEqualToString:@”ButtonDemoAction1″]) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”Demo Action 1 called” message:nil delegate:nil cancelButtonTitle:@”OK” otherButtonTitles:nil]; [alert show]; } else { NSString *newTitle = [[[NSUserDefaults standardUserDefaults] objectForKey:key] isEqualToString:@”Logout”] ? @”Login” : @”Logout”; [[NSUserDefaults standardUserDefaults] setObject:newTitle forKey:key]; } } but its not responding. I have the imports correctly: #import “IASKSpecifier.h” #import “IASKSettingsReader.h” I dont know what I´m doing wrong. I guess its some sort of connection that I am missing. Any chance I can take a look at your code? LikeLike Reply
Hi , I basically want to do the same thing you did with InAppSettingsKitt but I have been facing some hurdles.
I have a main controller where I have the following method:
– (void)settingsViewController:(IASKAppSettingsViewController*)sender buttonTappedForKey:(NSString*)key {
if ([key isEqualToString:@”ButtonDemoAction1″]) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”Demo Action 1 called” message:nil delegate:nil cancelButtonTitle:@”OK” otherButtonTitles:nil];
[alert show];
} else {
NSString *newTitle = [[[NSUserDefaults standardUserDefaults] objectForKey:key] isEqualToString:@”Logout”] ? @”Login” : @”Logout”;
[[NSUserDefaults standardUserDefaults] setObject:newTitle forKey:key];
}
}
but its not responding. I have the imports correctly:
#import “IASKSpecifier.h”
#import “IASKSettingsReader.h”
I dont know what I´m doing wrong. I guess its some sort of connection that I am missing.
Any chance I can take a look at your code?
LikeLike