ICViewPager icon indicating copy to clipboard operation
ICViewPager copied to clipboard

Select tab in viewWillAppear

Open vAlmaraz opened this issue 9 years ago • 0 comments

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)

vAlmaraz avatar Mar 01 '16 18:03 vAlmaraz