ios 键盘通知指向自己的属性VIew 怎么消除方法警告

[[NSNotificationCenter defaultCenter] addObserver:self.writeView selector:@selector(KeyboardFrameHeightOfShow:) name:UIKeyboardWillShowNotification object:nil];

报黄的原因是什么?是writeView没有找到KeyboardFrameHeightOfShow:方法么?还是KeyboardFrameHeightOfShow:方法没有声明? 如果是这样,就让他服从相关的代理,如果只是看着报黄心烦就用下面的代码直接加在报黄的代码前面

//忽略编译器的警告
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wdeprecated-declarations"

你需要把警告的截图发出来