0

I have an app in which I am using Page View Controllers for multiple pages. There is a main page view controller which contains 3 pages.

My 3rd page from main page view controller is also a page view controller which has 5 pages inside it.

My problem is when I swipe between those 5 pages of child page view controller, sometimes from 2nd or 3rd page it directly swipes to main page.

It should swipe to main page only when I am on 1st page of child page view controller. So when I am swiping between my child view controllers, my main page view controller's data source - delegate methods get called which I don't want.

So how to prevent overlapping between multiple page view controllers in this case?

EDIT How to distinguish swipe between two page view controllers?

Manthan
  • 3,856
  • 1
  • 27
  • 58

1 Answers1

0

Setting my main page view controller's data source to null when I am on child page view controller and setting it again when needed solved my issue.

Thanks.

Manthan
  • 3,856
  • 1
  • 27
  • 58