Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Select tab in viewWillAppear #139

@vAlmaraz

Description

@vAlmaraz

Hi!

I have an app in which I want to preselect a tab before loading the entire viewPager, so the ViewPagerViewController has a "selectedTab" property and I configure it before pushing the ViewController.

Then, I select the tab in viewWillAppear (#29).
It is working fine when executing on an iPhone but it doesn't work on iPad.

Has anyone a fix for it? Or maybe I have forgotten something...

Thank you very much

PD: the only fix I could add for now is checking selected tab in viewDidAppear, but it shows first tab and then it changes to the selected tab (it doesn't work always)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions