Change view with iPad SplitView.Master with Tab Bar

  1. 4 months ago

    Richard A

    May 14 Pre-Release Testers
    Edited 4 months ago

    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!

    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).

  2. Jeremie L

    May 15 Pre-Release Testers, Xojo Pro, XDC Speakers Europe (France) - getpackr.io

    Using iOSDesignExtensions 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.

  3. Richard A

    May 15 Pre-Release Testers

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

  4. Richard A

    May 15 Pre-Release Testers Answer

    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).

or Sign Up to reply!