示例#1
0
            public override void WillShowViewController(UINavigationController navigationController, UIViewController viewController, bool animated)
            {
                var items = viewController.ToolbarItems ?? (navigationController.ViewControllers.Length == 1 ? Handler.MainToolBar : null);

                navigationController.SetToolbarItems(items, true);
                navigationController.SetToolbarHidden(items == null || items.Length == 0, true);
            }