I have added Custom Keyboard extension inside my app and running perfect.
I have added NSNotification
in my keyboard extension class like this:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeKeyboardColor) name:@"keyboard_color" object:nil];
Now I am calling this notification from my view controller class like this:
[[NSNotificationCenter defaultCenter] postNotificationName:@"keyboard_color" object:self];
Now I have added my notification selector method in my keyboard extension class like this:
-(void)changeKeyboardColor{
}
But it is not working. I am testing in simulator and I don't know How to test keyboard extension in simulator.
Thanks.