It's hard to tell from just that bit of code, but it looks like you have an error in your method names. In the code you provided, you are registering for the notifications with a method named "keyboardWillToggle:". The error is indicating that you are trying to call a "keyboardWillShow:" method, though.
It would probably be best to declare and implement "keyboardWillShow:" and "keyboardWillHide:" on your class A, and then register for the notifications like this:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillShow:)
name:UIKeyboardWillShowNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillHide:)
name:UIKeyboardWillHideNotification
object:nil];