m1entus / MZFormSheetPresentationController

MZFormSheetPresentationController provides an alternative to the native iOS UIModalPresentationFormSheet, adding support for iPhone and additional opportunities to setup UIPresentationController size and feel form sheet.
MIT License
973 stars 146 forks source link

Vertical center #30

Closed rojo69 closed 9 years ago

rojo69 commented 9 years ago

I get the same position no matter of the value assigned to shouldCenterVertically.

m1entus commented 9 years ago

Have you set self.movementActionWhenKeyboardAppears == MZFormSheetActionWhenKeyboardAppearsDoNothing ?

rojo69 commented 9 years ago

Haven't altered it, so that seems to be the value. "} else if (self.shouldCenterVertically) {" in MZFormSheetPresentationController.h evaluates to YES causing the y-position get assigned.

m1entus commented 9 years ago

Don't see anything wrong here

rojo69 commented 9 years ago

Isn’t it supposed to center vertically? Now the view is placed on the upper part of the screen, even without a visible keyboard.

On 19 Oct 2015, at 20:00, Michał Zaborowski notifications@github.com wrote:

Don't see anything wrong here

— Reply to this email directly or view it on GitHub https://github.com/m1entus/MZFormSheetPresentationController/issues/30#issuecomment-149298353.

m1entus commented 9 years ago

You would have form sheet on the ceter if you make transition and make sure that after your transition view will be on center, on each other case like showing keyboard rotating view frame will change to center

m1entus commented 9 years ago

Fixed