# Change view with iPad SplitView.Master with Tab Bar

**URL:** <https://forum.xojo.com/t/change-view-with-ipad-splitview-master-with-tab-bar/48522>\
**Category:** iOS\
**Created:** [May 14, 2019, 7:37pm UTC](https://forum.xojo.com/t/change-view-with-ipad-splitview-master-with-tab-bar/48522 "2019-05-14T19:37:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Allmendinger](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Allmendinger](https://forum.xojo.com/u/Richard_Allmendinger)\
**Post date:** [May 14, 2019, 7:37pm UTC](https://forum.xojo.com/t/change-view-with-ipad-splitview-master-with-tab-bar/48522/1 "2019-05-14T19:37:35Z")

</div>

I have an iPad app that has a split view with a tab bar with four tabs on the left (Master) side at the bottom. When I tap on something on the right (Detail) side where there is a map, I would like to change the view above the tab bar to a different view (though one of the original views used to define the tabs). For example, if I tap on a point marker in the map on the right side, I would like to automatically switch from, say, the view for Tab(0) on the left to the view for Tab(2).

It seems that there must be an easy way to do this but all of the ways that I’ve found seem to erase the tab bar. Thanks in advance to the gurus on this forum!

---

<div class="post-metadata">

**Author:** ![Jeremie\_L](https://forum.xojo.com/user_avatar/forum.xojo.com/jeremie_l/32/150_2.png) [@Jeremie\_L](https://forum.xojo.com/u/Jeremie_L)\
**Post date:** [May 15, 2019, 9:10am UTC](https://forum.xojo.com/t/change-view-with-ipad-splitview-master-with-tab-bar/48522/2 "2019-05-15T09:10:00Z")

</div>

Using iOSDesignExtensions [https://github.com/jkleroy/iOSDesignExtensions/blob/master/iOSExtensions/TabBarExtensionsXC.xojo\_code](https://github.com/jkleroy/iOSDesignExtensions/blob/master/iOSExtensions/TabBarExtensionsXC.xojo_code)

You can use the SetTabPageXC function to simulate a Tab button tap.  
However I have never tested it in a SplitView that contains a TabBar.

---

<div class="post-metadata">

**Author:** ![Richard\_Allmendinger](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Allmendinger](https://forum.xojo.com/u/Richard_Allmendinger)\
**Post date:** [May 15, 2019, 11:56am UTC](https://forum.xojo.com/t/change-view-with-ipad-splitview-master-with-tab-bar/48522/3 "2019-05-15T11:56:52Z")

</div>

Thanks, Jeremie! And congratulations on your Best iOS App award.

---

<div class="post-metadata">

**Author:** ![Richard\_Allmendinger](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Richard\_Allmendinger](https://forum.xojo.com/u/Richard_Allmendinger)\
**Post date:** [May 15, 2019, 6:15pm UTC](https://forum.xojo.com/t/change-view-with-ipad-splitview-master-with-tab-bar/48522/4 "2019-05-15T18:15:59Z")

</div>

I have solved my problem. It turns out that in my case – a tabbed master view and no tabs on the detailed view – Self.ParentSplitView.Master returns an iOSTabBar, not an iOSView. Given that I was able to add a new method to a modified version of iOSTabBar Declares module in the examples folder to select the the tab (having learned how to do that by parsing key parts of the code that Jeremie referred me to).

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 3:56pm UTC](https://forum.xojo.com/t/change-view-with-ipad-splitview-master-with-tab-bar/48522/5 "2021-04-29T15:56:22Z")

</div>


