2012-02-22 5 views
2

私はページングの方向に関連した間違いを持っ​​ています。私はiBooksのようなアプリケーションを開発していますが、これは左から右へのページングの方向をサポートしなければなりません。このアプリケーションは、アラビア語の本を読むためのものです。UIPageViewControllerページングの方向

私はPrivate API(CAFilter)を使っていますが、アプリケーションはappstoreのレビューに合格していません。

私はpageViewControllerを作成し、direction.Iの彼のパラメータを変更するには方向が変更された

UIPageViewController."direction:UIPageViewControllerNavigationDirectionReverse" 
pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil]; 
[pageViewController setViewControllers:controllers direction:UIPageViewControllerNavigationDirectionReverse animated:NO completion:nil]; 

を使用してアプリケーションを書き換えますが、そうではありませんでしたか?しかし、私の本はまだ右から左にページされます。どうして?

+0

にウル背骨の場所を設定http://stackoverflow.com/記事を参照してください。 a/11124807/400909 – Atif

答えて

0

// [定数getCurrentLan]ブール値を返しますアラビア場合ウルアプリの言語は、// アラビア語である場合、最大

NSDictionary *options = [Constants getCurrentLan] ? [NSDictionary dictionaryWithObject: [NSNumber numberWithInteger:UIPageViewControllerSpineLocationMax] forKey: UIPageViewControllerOptionSpineLocationKey] : nil; 


self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl                navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:options]; 
関連する問題