[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

problem with a UITableViewController in mono touch

Posted on 2011-10-30
3
Medium Priority
?
722 Views
Last Modified: 2016-02-19
Screenshot

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.

Thanks
0
Comment
Question by:xtremereality
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
darbid73 earned 2000 total points
ID: 37055735
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.
0
 

Author Comment

by:xtremereality
ID: 37056752
@darbid73

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"?
0
 
LVL 20

Assisted Solution

by:darbid73
darbid73 earned 2000 total points
ID: 37057388
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"
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief look into what is, how to use, and how to make GIFs
Email is way too noisy, prone to hiding the important stuff, and really becoming unreliable for critical/timely communications. There are better ways to communicate.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

873 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