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
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.
When we try to present any view controller over
MZFormSheetPresentationViewController
modally and usingUIModalPresentationCurrentContext
(so that modally presented controller have the same bounds as child view controller ofMZFormSheetPresentationViewController
has) after dismissing this modally presented controller the frame of the child view controller ofMZFormSheetPresentationViewController
is set to[UIScreen mainScreen]
.To prevent this workaround is added like as it is done for
UIModalPresentationFullScreen
presentation style in the existing code.