mindsnacks / MSPageViewController

Create UIPageViewControllers using only storyboards
MIT License
89 stars 23 forks source link

Allow to change page from code. #9

Closed ararog closed 10 years ago

NachoSoto commented 10 years ago

Thanks for the PR!

UIPageViewController already offers this functionality though, so there's no need to duplicate it.

ararog commented 10 years ago

Got it, you mean, instead of have only this:

[pv changePage:1];

I must do this:

[self setViewControllers:@[[self viewControllerAtIndex:page]] direction:direction animated:YES completion:nil];

without mention to the fact that I'm referring to your code here, so I should build the array by myself, control de direction of the paging and etc.

Ok then.