Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to dismiss view when Tab bar item is pressed?
    primarykey
    data
    text
    <p>I have a view that has a navigation bar on the top, 4 buttons in the middle for the menu, and a tab bar navigation on the bottom.</p> <p>When only the tab bar items are used everything works, but when I load one of the views via the button the view remains when the tab bar item is pressed.</p> <p>I'm new to ios so I may not be explaining it that well. I'm attaching a couple pictures to show what I mean.</p> <p><img src="https://i.stack.imgur.com/XhxpP.png" alt="Initial Home Screen"> <img src="https://i.stack.imgur.com/PEBDL.png" alt="Home Screen After Button Pressed, item on navigational stack"></p> <p>I'm assuming that what I have to do to resolve is to intercept the Home button being pressed on the tab bar and tell it to dismiss the previously loaded view. I could be out to lunch on this.</p> <p>Please let me know how to make the home button on the tab bar load the initial view even if one of the buttons were pressed to load another view.</p> <p>Here's what my storyboard looks like. I used the Editor->Embed TabbarController. <img src="https://i.stack.imgur.com/6Qezq.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/W8g8n.png" alt="enter image description here"></p> <p>** Update: Still working on trying to resolve this. I attempted to set the tab bar controller delegate via the app delegate as per some Q/A on stackoverflow but it didn't seem to make a difference. There is another approach I should be taking if I want to have a main home screen with buttons to various sections and those sections have a navigation and Tab bar controllers? </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.
 

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