public override bool ShouldSelectViewController(UITabBarController tabBarController, UIViewController viewController)
 {
     if (tabBarController.SelectedViewController.TabBarItem.Tag == viewController.TabBarItem.Tag)
     {
         SameTabTapped?.Invoke();
         return(false);
     }
     if (viewController.TabBarItem.Tag == 2)
     {
         var photoViewController = new PhotoViewController();
         //photoViewController.PrefersStatusBarHidden();
         _navController.PushViewController(photoViewController, true);
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 public override void ViewWillAppear(bool animated)
 {
     if (!_isInitialized)
     {
         var tabBarDelegate = new TabBarDelegate(NavigationController);
         tabBarDelegate.SameTabTapped += () =>
         {
             SameTabTapped.Invoke();
         };
         Delegate       = tabBarDelegate;
         _isInitialized = true;
     }
     if (BaseViewController.ShouldProfileUpdate)
     {
         SelectedIndex = 3;
     }
     NavigationController.SetNavigationBarHidden(true, true);
     base.ViewWillAppear(animated);
 }