uimodalpresentationstyle

iOS 8 keyboard hides my textview

删除回忆录丶 提交于 2019-11-27 11:42:21
I have a UIViewController presented using self.accountViewController.modalPresentationStyle = UIModalPresentationFormSheet; and now in iOS 8 the last UITextView is hidden from the keyboard when it will pushed up. How to avoid It? newton_guima @Oleg's solution is good but it doesn't take into consideration keyboard changes in size while its already showing.. also, he hardcoded the animation duration and a few other parameters. See my solution below: Add an observer of UIKeyboardWillChangeFrameNotification to the viewDidLoad [[NSNotificationCenter defaultCenter] addObserver:self selector:

iOS 8 keyboard hides my textview

那年仲夏 提交于 2019-11-26 18:03:55
问题 I have a UIViewController presented using self.accountViewController.modalPresentationStyle = UIModalPresentationFormSheet; and now in iOS 8 the last UITextView is hidden from the keyboard when it will pushed up. How to avoid It? 回答1: @Oleg's solution is good but it doesn't take into consideration keyboard changes in size while its already showing.. also, he hardcoded the animation duration and a few other parameters. See my solution below: Add an observer of