iOS Question TabStrip Height During Runtime

Discussion in 'iOS Questions' started by aaronk, Nov 23, 2018.

  1. aaronk

    aaronk Well-Known Member Licensed User


    I am using the TabStrip in my project -

    I have loaded the TabStrip using the designer. (layout1)

    I have another layout (layout2) which contains 2 images.

    Image1 is at the top of the page.
    Image2 is at the bottom of the page.

    I am trying to work out how to make the TabStrip height between the 2 images.

    Yes, I know I could just move the TabStrip to Layout2 and use the designer script, but I used the above as an example.

    My main app, is using Layout 2 on all screens and rather than adding it to each layout I wanted to re-use the same layout in case I decide to change the layout and won't have to change every layout page.

    If I can make it so the TabStrip can change it's height then I should be able to do what I am wanting to do, but can't work out how to do it.

    I was hoping to adjust the height using the Page_resize event, but the TabStrip can't adjust the height using the code during runtime and only in the designer.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Create a new layout with TabStrip anchored to all sides. Load this layout to a panel. You can now change the panel size to resize TabStrip.
  3. aaronk

    aaronk Well-Known Member Licensed User

    That worked :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice