ios5 – 如何在iOS 5中向UIPageViewController添加页面数组?

ios5 – 如何在iOS 5中向UIPageViewController添加页面数组?,第1张

概述有谁知道我为了将我自己的视图控制器手动添加到UIPageViewController方法而缺少什么? 我目前有这个,我不知道如何继续: NSDictionary *pageViewOptions = [NSDictionary dictionaryWithObjectsAndKeys:UIPageViewControllerOptionSpineLocationKey, [NSNumber num 有谁知道我为了将我自己的视图控制器手动添加到UIPageVIEwController方法而缺少什么?

我目前有这个,我不知道如何继续:

NSDictionary *pageVIEwOptions = [NSDictionary dictionaryWithObjectsAndKeys:UIPageVIEwControllerOptionSpineLocationKey,[NSNumber numberWithInteger:UIPageVIEwControllerSpineLocationMin],nil];self.pageVIEwController = [[UIPageVIEwController alloc] initWithTransitionStyle:UIPageVIEwControllerTransitionStylePageCurl navigationorIEntation:UIPageVIEwControllerNavigationorIEntationHorizontal options:pageVIEwOptions];BookVIEwController *pageOne = [self.storyboard instantiateVIEwControllerWithIDentifIEr:@"BookVIEwController"];AnotherPage *pageTwo = [self.storyboard instantiateVIEwControllerWithIDentifIEr:@"AnotherPage"];PageThree *pageThree = [self.storyboard instantiateVIEwControllerWithIDentifIEr:@"PageThree"];self.pageVIEwController.delegate = self;self.pageVIEwController.dataSource = self;[self.pageVIEwController setVIEwControllers:[NSArray arrayWithObjects:pageOne,pageTwo,pageThree,nil] direction:UIPageVIEwControllerNavigationDirectionForward animated:NO completion:nil];[self addChildVIEwController:self.pageVIEwController];[self.vIEw addSubvIEw:self.pageVIEwController.vIEw];self.vIEw.gestureRecognizers = self.pageVIEwController.gestureRecognizers;[self.pageVIEwController dIDMovetoParentVIEwController:self];

但它似乎没有用.我只看到RootVIEwController.

感谢所有喜欢提前帮助像我这样渴望新手的人…. 总结

以上是内存溢出为你收集整理的ios5 – 如何在iOS 5中向UIPageViewController添加页面数组?全部内容,希望文章能够帮你解决ios5 – 如何在iOS 5中向UIPageViewController添加页面数组?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1016756.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存