IdleHandsApps / IHKeyboardAvoiding

IHKeyboardAvoiding is an elegant solution for keeping any UIView visible when the keyboard is being shown - no UIScrollView required!
MIT License
1.41k stars 151 forks source link

Present Modal PageSheet pushes view beyond viewport #6

Open ninokierulf opened 9 years ago

fraserscottmorrison commented 9 years ago

Could you provide more info - is the keyboard visible when the modal page sheet is shown?

Whats the actual behaviour vs the expected behaviour?

ninokierulf commented 9 years ago

The keyboard is not shown initially when the modal page sheet is presented. I then tap a textfield, I have a property UIView that contains the textfields and I pass that property as the target in [IHKeyboardAvoiding setAvoidingView:self.view withTarget:self.avoiding].

Expected behaviour is that the text fields within self.avoiding (UIView) should still be visible within the page sheet.

By my observations, the gap from the main screen bottom and the page sheet bottom is added in the calculation of avoiding the keyboard

UPDATE: I'm not using autolayout