Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had the same problem and here is the solution that worked for me. Say you're pushing <code>SomeUIViewController</code> onto your navigation stack.</p> <p>Define this (private) ivar in the interface of <code>SomeUIViewController</code>:</p> <pre><code>// keep a reference to the navigation controller for use in viewDidDisappear:(BOOL)animated method UINavigationController * _navigationController; </code></pre> <p>Implement the following methods of <code>SomeUIViewController</code>:</p> <pre><code>- (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; // here, your controller still has a reference to self.navigationController _navigationController = [self.navigationController retain]; } - (void)viewDidDisappear:(BOOL)animated { // at this point, self.navigationController = 0x0, so // use your retained reference to the navigation controller to perform any last minute operations, then release [_navigationController setToolbarHidden:YES]; [_navigationController release]; [super viewDidDisappear:animated]; } </code></pre> <p>The idea is that you want to hide the toolbar owned by the navigation controller <em>after</em> <code>SomeUIViewController</code>'s view has disappeared. This way, you avoid any unwanted display artifacts.</p> <p><strong>DISCLAIMER</strong></p> <p>This is merely an answer that shows a workaround solution for the stated question. It is meant solely to point out a detail of the inner workings of the framework. It is also meant as an example of what <em>not</em> to submit to the Apple AppStore.</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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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