Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8004449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:55:23+00:00 2026-06-04T16:55:23+00:00

I have a Monotouch App, on AppDelegate the RootViewController is a TabBarController, this TabBarController

  • 0

I have a Monotouch App, on AppDelegate the RootViewController is a TabBarController, this TabBarController have 5 ViewControllers, lets say view1 to view5, I use

tabBarController.SelectedIndex = 2;

for select which viewController will load when the app starts it works and the default tabBar is view3, now I need to show another viewController, lets say from view1 change to view5 with code, its possible? there’s a way to emulate the clic on one of the buttons of my TabBar, that will work too…

UPDATE:

I tried:

view1.TabBarController.ViewControllers[4].PresentViewController(view5, true, delegate{});

And it works, but the view5 is presented over the TabBar, also I try this:

view1.TabBarController.TabBar.Items[4]. //I don't know which method could invoke the click

Where I select the item of the tabbar I want to click

I think the solution is close to this, the problem is that always the view5 shows over the TabBar and block it…

SOLVED:

view1.TabBarController.SelectedIndex = 2; //where the number is the view zero-based
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:55:25+00:00Added an answer on June 4, 2026 at 4:55 pm

    This what you want? You can call this from any click handler.

    AppDelegate.Current.NavController.PushViewController(new View5(), true);
    

    In my AppDelegate class I have:

    public partial class AppDelegate : UIApplicationDelegate
    {
        public static AppDelegate Current { get; private set; }
        public UINavigationController NavController { get; private set; }
    
        public override bool FinishedLaunching (UIApplication app, NSDictionary options)
        {
            Current = this;
            NavController = new UINavigationController();
            ...
        }
    }
    

    or do you want to just switch tabs: How to programmatically change views in TabBarViewController?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got an application developed with Monotouch 4.0.7. This app is running on
I am trying to build a sample app using Monotouch. I have this configuration/setup
I wanted to use monotouch, but unfortunately I don't have $400 to spend. So
I have a MonoTouch iPhone app which has a UITableViewController as it's main view
I have a MonoTouch app, when I compile it for the device, I get
I have a view in a MonoTouch app using MvvmCross framework that I would
I am creating a monotouch ipad app. I have a popover with tableview in
since three days i have the monotouch personal edition. I developed an app in
I have an app in MonoTouch for iPad (iOS 4.2). I have a main
I have created a small iPhone app using MonoTouch - got all provisioning files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.