CedricSoubrie
CedricSoubrie

Reputation: 6697

Changing the UIPageViewController transition

I'd like to use an horizontal UIPageViewController for my iOS 5.0 application.

The only problem I have is that I don't want a UIPageViewControllerTransitionStylePageCurl transition. Is there a way to get a classic transition like translation for example?

Note :Even ugly hacks are accepted since it would take out a lot of my previous code

Upvotes: 5

Views: 4586

Answers (2)

jcesarmobile
jcesarmobile

Reputation: 53371

Update to tell you that now there is now a new transition style for iOS 6, and it's the transition you wanted

UIPageViewControllerTransitionStyleScroll

http://developer.apple.com/library/ios/ipad/#documentation/uikit/reference/UIPageViewControllerClassReferenceClassRef/UIPageViewControllerClassReference.html

Upvotes: 2

Paresh Navadiya
Paresh Navadiya

Reputation: 38259

But UIPageViewController has only one transition style:

 enum {
  UIPageViewControllerTransitionStylePageCurl = 0
 };
 typedef NSInteger UIPageViewControllerTransitionStyle;

Solution is that u will have to create UIPageViewController like viewController with custom transition

Refer MPFoldTransition sample code

Upvotes: 0

Related Questions