上移专题提供上移的最新资讯内容,帮你更好的了解上移。
func textFieldShouldBeginEditing(textField: UITextField) -> Bool { NSLog("将要开始编码") var offset : CGFloat = CGFloat(self.view.frame.size.height) - CGFloat(self.txt_phone.frame.o
先上效果 用到的变量 @IBOutlet weak var textView: UITextView! //MARK: 记录UITextView的原始高度 var textViewHeight: CGFloat! viewDidLoad //获取原始位置 textViewHeight = textView.frame.origin.y //注册监听 NotificationCenter.d