Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As @Amandir points out you could probably solve your problems by using a <code>UINavigationController</code>. I get a feeling that you are trying to abuse the modal view controller concept a bit and that's why it doesn't work as you expect. When you use <code>presentModalViewController:animated:</code> the intention should be that you are displaying a view that is modal, i.e. the user <em>must</em> interact and dismiss the modal view before she can continue.</p> <p>What the paragraph above means that when you present a modal view controller it <strong>shouldn't</strong> be possible to use the tab bar. Since you are using the word push I'm guessing that you would like change the view of Tab01 while still being able to use the functionality of the tab bar. The problem is that there isn't any built-in method of pushing view controllers besides <code>UINavigationController</code>. <code>persentModalViewController:animated:</code> should only be used in case where you want a modal view, which on the iPhone means a full screen view. </p> <p>The easiest way would probably be to use an <code>UINavigationController</code> and hide the navigation bar. Then you would get the functionality I think you are after. The other option is to manually add and remove sub views. </p> <pre><code>[self.view addSubview:repVC.view]; </code></pre> <p>and</p> <pre><code>[repVC.view removeFromSuperview]; [self.view addSubview:mail.view]; </code></pre> <p>You can use block animations if you want some fancy transitions. </p>
    singulars
    1. This table or related slice is empty.
    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.
    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