mikefrederick / MFSideMenu

Facebook-like side menu for iOS
Other
1.17k stars 291 forks source link

Added support for disabling rotation based on the top view controller #221

Closed alejandroivan closed 1 year ago

alejandroivan commented 7 years ago

Added a BOOL property that determines if the rotation methods result should be taken from the top view controller of a navigation controller (in the case of a UINavigationController being the centerViewController) or from the navigation controller itself.

This is useful for subclassing a UINavigationController and controlling the rotation from the superclass globally.

The default value is YES, so the default behavior matches the current implementation (using the top view controller by default).

Also added the same kind of BOOL but for the status bar style.