Is there a simple way, when returning to the primary tab on a UITabBar, for one to swap out the view that was last displayed in that tab for a new one? Would this be with the ViewDidAppear method? How would I keep this from happening on the initial load? Perhaps initialize a counter to control this? Any input is greatly appreciated.
Share
You should implement the
UITabBarDelegate‘stabBar:didSelectItem:method and replace the view there. You can use aBOOLto make the switch.