我目前有这个,我不知道如何继续:
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添加页面数组?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)