0
のときに変更位置が変わり、UITextFieldの位置を変更してキーボードを開くと、UITextFieldが元の位置に戻ってジャンプします。swift:キーボードが
UIView.animateWithDuration(0.5, animations: {() -> Void in
self.TextField.center.y = self.view.frame.height/2
})
のときに変更位置が変わり、UITextFieldの位置を変更してキーボードを開くと、UITextFieldが元の位置に戻ってジャンプします。swift:キーボードが
UIView.animateWithDuration(0.5, animations: {() -> Void in
self.TextField.center.y = self.view.frame.height/2
})
override func viewDidLayoutSubviews() {
if(ifnew == true) {
self.feld.center.y = self.view.frame.height/2
}
}
Iソリューション