Note that there are some explanatory texts on larger screens.

plurals
  1. POQuestion regarding iOS TabBar Applications
    primarykey
    data
    text
    <p>I am trying to build a TabBar application in iOS (iPhone). I am able to add a root controller and the tab bar control. I am also able to add 4 different view (xib files).</p> <p>All is well.</p> <p>My question, is on one (or many) of the view's I would like to transition to 'sub' views. It seems like a simple thing to do, but for the life of me I cannot find an example that does both nor can I get it to work.</p> <p>As an example Tab 1 - Location Tab 2 - Profile Tab 2 - Profile - Detail (from a button) Tab 2 - Profile - Info (from a button) Tab 2 - Profile - Info - More Info (from a button) Tab 3 - Settings</p> <p>I would like to avoid navigation controls if possible.</p> <p>Thanks in advance from the noob</p> <p>--UPDATE</p> <p>I am trying to clarify a bit more, I am new to the iOS world so please bear with me if I am referring to things incorrectly.</p> <p>I have a Window Based application that utilizes a TabBar control. I have the TabBar control on the MainWindow.xib and it is associated to a tabBarController I defined in the delagate file. Each of the TabBar items load separate UIViewController.xib files.</p> <p>All is well. I can tab between the 4 views.</p> <p>In one of the views, I would like to add form elements (text boxes, etc..) but I need to have a button that allows a user to click to go to a detail view to explain what is in the text box. Think of it as the textbox on the selected view is the total and the detail view is the line items that make up the total.</p> <p>Now, I have created a button and created an IBAction and hooked it up. I can click the button and trigger a response on the IBAction method. I can also transition to my 'sub view' or my detail screen (i am calling it a sub view for lack of knowledge of what I should call it). However, the selected view is still shown but not hidden.</p> <pre><code>BillDetailViewController *billController = [[BillDetailViewController alloc] initWithNibName:@"BillDetailViewController" bundle:0]; self.billDetailViewController = billController; [billController release]; [currentView.view removeFromSuperview]; [currentView release]; [self.view insertSubview:billDetailViewController.view atIndex:0]; </code></pre> <p>I also need to then go back to the selected view.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload