<small id='paOo1'></small><noframes id='paOo1'>

    1. <i id='paOo1'><tr id='paOo1'><dt id='paOo1'><q id='paOo1'><span id='paOo1'><b id='paOo1'><form id='paOo1'><ins id='paOo1'></ins><ul id='paOo1'></ul><sub id='paOo1'></sub></form><legend id='paOo1'></legend><bdo id='paOo1'><pre id='paOo1'><center id='paOo1'></center></pre></bdo></b><th id='paOo1'></th></span></q></dt></tr></i><div id='paOo1'><tfoot id='paOo1'></tfoot><dl id='paOo1'><fieldset id='paOo1'></fieldset></dl></div>
        <bdo id='paOo1'></bdo><ul id='paOo1'></ul>
    2. <legend id='paOo1'><style id='paOo1'><dir id='paOo1'><q id='paOo1'></q></dir></style></legend><tfoot id='paOo1'></tfoot>

        RTL 语言 uipageviewcontroller 动画

        时间:2023-06-01
          • <bdo id='v6nw6'></bdo><ul id='v6nw6'></ul>

            <i id='v6nw6'><tr id='v6nw6'><dt id='v6nw6'><q id='v6nw6'><span id='v6nw6'><b id='v6nw6'><form id='v6nw6'><ins id='v6nw6'></ins><ul id='v6nw6'></ul><sub id='v6nw6'></sub></form><legend id='v6nw6'></legend><bdo id='v6nw6'><pre id='v6nw6'><center id='v6nw6'></center></pre></bdo></b><th id='v6nw6'></th></span></q></dt></tr></i><div id='v6nw6'><tfoot id='v6nw6'></tfoot><dl id='v6nw6'><fieldset id='v6nw6'></fieldset></dl></div>

              1. <tfoot id='v6nw6'></tfoot>

                <small id='v6nw6'></small><noframes id='v6nw6'>

                <legend id='v6nw6'><style id='v6nw6'><dir id='v6nw6'><q id='v6nw6'></q></dir></style></legend>
                    <tbody id='v6nw6'></tbody>

                • 本文介绍了RTL 语言 uipageviewcontroller 动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我知道这个问题很典型,并且在论坛上被问过很多次,但我仍然无法解决我的问题,所以如果有任何人可以提供帮助,那就太好了:)

                  I know this question is typique and it was asked many times in the forum, but I still cannot solve my problem, so please if any body can help be that would be GREAT :)

                  我正在用阿拉伯语创建一个图书应用程序,我需要执行 uipageviewcontroller 从右到左的转换.这就是我要说的.

                  I am creating a book application in the arabic languages and I need to perform the transitions of the uipageviewcontroller from right to left. And thats all I have to say.

                  还有一件事(如果我没有很好地解释我自己的话)我有这个线程的确切需求:如何改变 UIPageViewController 的分页卷曲动画方向 但我无法做出他们所说的解决方案,所以如果有人可以解释我或给我一个链接在那里我可以知道如何做到这一点已经绰绰有余了:)

                  One more thing (if I hadn't explain very well my self) I have the exact need as this thread: How to change UIPageViewController direction of paging curl animation but I couldn't manage to make the solution they spoke about, so if someone can explain me or give me a link where I can have how to do it that would be more than enough :)

                  推荐答案

                  这样就可以了

                  1. 将pageViewController的数据源代码从viewControllerBeforeViewController换成viewControllerAfterViewController

                  UIPageViewControllerSpineLocationMin 更改为 UIPageViewControllerSpineLocationMax

                  要检查这一点,请将基于页面的应用程序模板启动为 Universal 并在 ModelController.m 中更改以下内容

                  To check that, start Page-Based Application template as Universal and change the following in ModelController.m

                  - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerBeforeViewController:(UIViewController *)viewController
                  {
                      NSUInteger index = [self indexOfViewController:(DataViewController *)viewController];
                      if (index == NSNotFound) {
                          return nil;
                      }
                  
                      index++;
                      if (index == [self.pageData count]) {
                          return nil;
                      }
                      return [self viewControllerAtIndex:index storyboard:viewController.storyboard];
                  }
                  
                  - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController
                  {
                      NSUInteger index = [self indexOfViewController:(DataViewController *)viewController];
                      if ((index == 0) || (index == NSNotFound)) {
                          return nil;
                      }
                  
                      index--;
                      return [self viewControllerAtIndex:index storyboard:viewController.storyboard];
                  }
                  

                  UIPageViewControllerSpineLocationMin改为UIPageViewControllerSpineLocationMax,在RootViewController.m"中滑动(indexOfCurrentViewController % 2 == 0)的条件

                  and change UIPageViewControllerSpineLocationMin to UIPageViewControllerSpineLocationMax and swipe the condition of (indexOfCurrentViewController % 2 == 0) in "RootViewController.m"

                  - (UIPageViewControllerSpineLocation)pageViewController:(UIPageViewController *)pageViewController spineLocationForInterfaceOrientation:(UIInterfaceOrientation)orientation
                  {
                      if (UIInterfaceOrientationIsPortrait(orientation) || ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)) {
                          UIViewController *currentViewController = [self.pageViewController.viewControllers objectAtIndex:0];
                          NSArray *viewControllers = [NSArray arrayWithObject:currentViewController];
                          [self.pageViewController setViewControllers:viewControllers direction:UIPageViewControllerNavigationDirectionForward animated:YES completion:NULL];
                  
                          self.pageViewController.doubleSided = NO;
                          return UIPageViewControllerSpineLocationMax;
                      }
                  
                      DataViewController *currentViewController = [self.pageViewController.viewControllers objectAtIndex:0];
                      NSArray *viewControllers = nil;
                  
                      NSUInteger indexOfCurrentViewController = [self.modelController indexOfViewController:currentViewController];
                      if (indexOfCurrentViewController == 0 || indexOfCurrentViewController % 2 == 0) {
                          UIViewController *previousViewController = [self.modelController pageViewController:self.pageViewController viewControllerBeforeViewController:currentViewController];
                          viewControllers = [NSArray arrayWithObjects:previousViewController, currentViewController, nil];
                      } else {
                          UIViewController *nextViewController = [self.modelController pageViewController:self.pageViewController viewControllerAfterViewController:currentViewController];
                          viewControllers = [NSArray arrayWithObjects:currentViewController, nextViewController, nil];
                      }
                      [self.pageViewController setViewControllers:viewControllers direction:UIPageViewControllerNavigationDirectionForward animated:YES completion:NULL];
                  
                  
                      return UIPageViewControllerSpineLocationMid;
                  }
                  

                  来源:PageViewControllers Apple Doc

                  这篇关于RTL 语言 uipageviewcontroller 动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何以编程方式使铃声静音或更改 iOS5 上的铃声 下一篇:将 Xcode 升级到 4.5 后,Restkit 10.0 项目无法为 iO

                  相关文章

                  最新文章

                  1. <i id='vD38o'><tr id='vD38o'><dt id='vD38o'><q id='vD38o'><span id='vD38o'><b id='vD38o'><form id='vD38o'><ins id='vD38o'></ins><ul id='vD38o'></ul><sub id='vD38o'></sub></form><legend id='vD38o'></legend><bdo id='vD38o'><pre id='vD38o'><center id='vD38o'></center></pre></bdo></b><th id='vD38o'></th></span></q></dt></tr></i><div id='vD38o'><tfoot id='vD38o'></tfoot><dl id='vD38o'><fieldset id='vD38o'></fieldset></dl></div>

                    <small id='vD38o'></small><noframes id='vD38o'>

                    <legend id='vD38o'><style id='vD38o'><dir id='vD38o'><q id='vD38o'></q></dir></style></legend>

                      • <bdo id='vD38o'></bdo><ul id='vD38o'></ul>
                      <tfoot id='vD38o'></tfoot>