guilhermearaujo / GUITabPagerViewController

MIT License
454 stars 69 forks source link

disable/enable the ability to change the tab #15

Closed moonlait closed 9 years ago

moonlait commented 9 years ago

I need to disable/enable the ability to change the tab when a action is called in the pageview. I have no idea how i could access the pageviewcontroller before the swipe gestures is called.

I tried it with additional delegate methods in the guitabpagerviewcontroller and i also tried to access directly from my main controller to set pageViewControllerObject.view.userInteractionEnabled = NO; It is not possible because the pageviewcontroller is a child of UIPageViewControllerContentView. So i become a warning: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UIPageViewControllerContentView childViewControllers]: unrecognized selector sent to instance.

moonlait commented 9 years ago

Nice job. Thanks