Search code examples
objective-cxcodeipaduisplitviewcontrolleruipageviewcontroller

UIPageViewController in SplitView Controller


I want to have UIPageViewController in my Split view controller. So i have created UIPageViewController and replaced my detail view controller.

But now the problem is i can move to next pages but not previous pages. As i am using split view in portrait mode the master vc appears when i attempt to move to previous page. In landscape mode there is no response.

Any solution or sample would be appreciated.

I have followed this link to create UIPageViewCntroller http://www.techotopia.com/index.php/An_Example_iOS_5_iPhone_UIPageViewController_Application

Thanks in advcance


Solution

  • I got it worked as follows,

    - (BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation
    

    Now my master view will be visible always in Portrait mode.