NavigationControllerMode
@objc(PESDKNavigationControllerMode)
public enum NavigationControllerMode : Int
This mode defines the behavior if a MediaEditViewController
or one of its ancestors is a child
of a UINavigationController
.
-
If there’s a
UINavigationController
use itsUINavigationBar
at the top of the screen to display theMediaEditViewController
‘sToolbar
which is normally displayed at the bottom of the screen if there’s noUINavigationController
present.Declaration
Swift
case useNavigationBar
-
If there’s a
UINavigationController
keep theMediaEditViewController
‘sToolbar
at the bottom of the screen.Declaration
Swift
case useToolbar
-
When a
MediaEditViewController
is part of a custom container view controller, which is presented in anUINavigationController
, theMediaEditViewController
will not be able to update the navigation controller’s navigation bar by default because that is the job of the immediate child of the navigation controller. This mode is identical to theuseNavigationBar
mode except that the parent view controller’sUINavigationItem
will be altered instead of theMediaEditViewController
‘s own navigation item so that theUINavigationBar
can be used to display theToolbar
even when embedded in a custom container view controller.Declaration
Swift
case useNavigationBarAndParentNavigationItem