解决Keyboard 遮挡 UITextField的问题?

添加
    [[NSNotificationCenter defaultCenter] addObserver:mLoginView
                                             selector:@selector(keyboardWillShow:)
                                                 name:UIKeyboardWillShowNotification
                                               object:nil];        

在keyboardWillShow中调UIView坐标,UIView.center = CGPointMake(x,y);

然后在textField的Did End On Edit事件中再改回去

http://www.cocoachina.com/bbs/read.php?tid-30877-fpage-9.html

原文地址:https://www.cnblogs.com/zyip/p/1992694.html