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

Prevent setting frame of `MZFormSheetPresentationViewControllerCustom… #105

Closed yklishevich closed 8 years ago

yklishevich commented 8 years ago

When we try to present any view controller over MZFormSheetPresentationViewController modally and using UIModalPresentationCurrentContext (so that modally presented controller have the same bounds as child view controller of MZFormSheetPresentationViewController has) after dismissing this modally presented controller the frame of the child view controller of MZFormSheetPresentationViewController is set to [UIScreen mainScreen].

To prevent this workaround is added like as it is done for UIModalPresentationFullScreen presentation style in the existing code.

m1entus commented 8 years ago

Thanks ;)

yklishevich commented 8 years ago

Could you publish the 2.4.3. version in CocoaPods.