1

I'm working on iOS8 custom keyboard, I want to change the keyboard's backgroung in this way:

  1. Set RequestsOpenAccess = YES;

  2. Settings:

    NSUserDefaults * usrInfo = [[NSUserDefaults alloc] initWithSuiteName:@"myKeyboard"];
    [usrInfo setObject:theme.icon forKey:@"themeName"]; // This is the new data;
    
    [usrInfo synchronize];
    
  3. 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.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
SamSam
  • 113
  • 8

2 Answers2

1

Check the settings in your device is it set to allow full access?

Jarek Toro
  • 82
  • 1
  • 9
  • Thanks for your help.Finally I solved the problem. It is because the iOS8 on my iPhone is beta version, after updating the system to the official version, the problem is no longer exist. – SamSam Sep 22 '14 at 02:42
0

Finally I solved the problem. It is because the iOS8 on my iPhone is beta version, after updating the system to the official version, the problem is no longer exist.

SamSam
  • 113
  • 8