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

Select tab in viewWillAppear #139

Open
vAlmaraz opened this issue Mar 1, 2016 · 0 comments
Open

Select tab in viewWillAppear #139

vAlmaraz opened this issue Mar 1, 2016 · 0 comments

Comments

@vAlmaraz
Copy link

vAlmaraz commented Mar 1, 2016

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant