I'm working on iOS8 custom keyboard, I want to change the keyboard's backgroung in this way:
Set
RequestsOpenAccess = YES;
Settings:
NSUserDefaults * usrInfo = [[NSUserDefaults alloc] initWithSuiteName:@"myKeyboard"]; [usrInfo setObject:theme.icon forKey:@"themeName"]; // This is the new data; [usrInfo synchronize];
keyboardChange:
NSUserDefaults * usrInfo = [[NSUserDefaults alloc] initWithSuiteName:@"myKeyboard"]; [usrInfo synchronize]; NSString * str = [usrInfo objectForKey:@"themeName"];
Then I can change the theme of the keyboard, it's ok on the simulator. But when I used the real machine, everything is ok but I can never change the theme, I'm really confused.