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

When I return to PagerController again ,it backed to the first page automatically. #126

Open
Torres009 opened this issue Jun 26, 2015 · 1 comment

Comments

@Torres009
Copy link

I had clicked on the third one, I wrote a tableView in contentViewController, when I click on a cell , it jumped a new viewController, but when I click on the return, indicating red stripe and the content is automatically returned to the first one. when I want to return ,I want to let it stay at the click of the bar before, how can I do it, thank you!

@MahdouaniYessine
Copy link

I resolved this by adding
if(self.defaultSetupDone ==NO){ ... in - (void)defaultSetup{... method
in ViewPagerController.m
so the method will be like

- (void)defaultSetup {
if(self.defaultSetupDone ==NO){   
..........
}
self.defaultSetupDone = YES;    
}

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

2 participants