problem with a UITableViewController in mono touch

Posted on 2011-10-30
Last Modified: 2016-02-19

Hi all,
As you can see on the link above, I'm facing a problem with an iPhone app I'm building using mono touch.
The MainWindow.xib has a tab bar controller and on the first tab there the class causing the problem. This class is extending an UITableViewController. you can see the code here.
Basically the problem is this: The application starts and loads 2 tables. The first is showing some product's categories and the second some external links. If I click on any cell then another table view controller is pushed. If I'm on the second table view controller and I click on the first tab icon (the little blue ball you see on the image), what is shown on the third part of the image is happening: looks like the first controller is loosing all the content and I cannot figure out why and how to resolve. Hope my problem it's clear and more important someone can help me.

Question by:xtremereality
    LVL 19

    Accepted Solution

    So you have a tabviewcontroller and on the first tab you have a navigation controller.

    When other views are pushed onto the navigation controller stack and then the tab is clicked again you want to go back to the first view in the stack?

    If this is the case then do just this.  Just go back in the stack of pushed navigation controllers.

    But it is a subjective decision is that is a good thing.  For example I might be of the opinion that if the tab is already active why should pushing the tab again make it go back to the first view.  Just my opinion.

    Author Comment


    Thanks for your answer. You are right and I agree with you. The problem is that for my customer this is an error. I believe the fastest solution is to disable the selected tab to prevent clicks and re-activate it when the tab is changed into another one. In this case just a quick question, do you know if there is the possibility to give to any object a sort of "global visibility"?
    LVL 19

    Assisted Solution

    I hope I understand you.  To create "global visibility" AND I think you would need to work on it, you need to use the app delegate, this class is "global"

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
    You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now