I added the Custom Keyboard extension inside my application and it works great.
I added a NSNotificationkeyboard extension to my class as follows:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeKeyboardColor) name:@"keyboard_color" object:nil];
Now I call this notification from my view controller class as follows:
[[NSNotificationCenter defaultCenter] postNotificationName:@"keyboard_color" object:self];
Now I have added my notification selection method to my keyboard extension class as follows:
-(void)changeKeyboardColor{
}
But it does not work. I am testing in a simulator and I do not know. How to check the keyboard extension in the simulator.
Thanks.
Nirav source
share