草庐IT

uiPageViewController

全部标签

ios - 在 View Controller /页面 View Controller 中全屏显示图像(快速)

我正在使用UIPageViewController来全屏显示图像。问题是图像没有全屏显示。相反,图像和页面控件View点之间的底部以及顶部有一个间隙。我有一个UIViewController,它作为subview/subview添加到UIPageController,并且ViewController具有使用ImageView显示的图像。我正在尝试在swift/storyboard中执行此操作。我在Storyboard中将顶部栏和底部栏选项更改为“无”,但它不起作用。图片预览:ChildViewControllerCode:classBoatContentViewController:U

ios - 在当前应用中添加 UIPageViewController

我有一个处于工作状态的应用程序,其中我有三个屏幕1、2、3,每个屏幕都与一个以编程方式创建的UICollectionView相关联,现在我想修改当前的实现并将这些CollectionView添加到UIPageViewControllers。我试图找到许多与PageViewController和CollectionViews相关的教程,但找不到任何内容。任何人都可以帮助我实现这个或者可以给我相关的引用。我也提到了thistutorial,但我运气不好:( 最佳答案 只需按照其中一些页面ViewController教程进行操作,当您开始

ios - 如何使用点击手势 (iOS8/Swift) 在 pageViewController 上显示/隐藏状态栏

查看针对类似问题的所有解决方案,我一直在尝试让statusBar通过点击手势显示/隐藏。我在plist中设置了Viewcontroller-basedstatusbarappearance=NO。我已经在我的DataViewController(页面ViewController)和RootViewController中尝试了以下代码:letapp=UIApplication.sharedApplication()app.setStatusBarHidden(true,withAnimation:UIStatusBarAnimation.Fade)它不起作用。这是嵌入在UITabBarC

Xcode XIB : how to implement a ScrollView or PageControl to swipe sub-views?

我正在构建一个典型的Xcode6iOS应用程序。我的目标是:具有子区域的屏幕,可以通过滑动该区域来更改内容。例如,主屏幕有一个Logo图像、一个我希望可滑动的中间区域和一个底部按钮。当用户滑动(或点击)中间区域时,该区域显示下一个(或上一个)信息,这是典型的UIImage和UILabel标题。屏幕的其余部分保持不变,即导航没有变化。密码是here.它使用StackOverflow帖子中的建议here.我的问题:如何在仍然使用XIB的情况下更好地实现下面的代码?我当前的实现确实有效,并且使用了这种方法...一个典型的SwiftDemo.swift文件是一个UIViewController

ios - 禁用 UIPageViewController 弹跳 - Swift

这个问题在这里已经有了答案:DisableUIPageViewControllerbounce(16个答案)关闭5年前。我一直在制作一个在UIViewControllers之间滚动的示例应用程序,但关键是我想在滚动结束时以及返回到第一个UIViewController。这是我的代码:classPageViewController:UIPageViewController,UIPageViewControllerDataSource,UIPageViewControllerDelegate{varindex=0varidentifiers:NSArray=["FirstNavigatio

ios - 检查特定的手势识别器

我有一个包含VC的uipageviewcontroller。与在任何pageviewcontroller中一样,您可以向左滑动,向右滑动以更改VC。每次动画完成时,我都会向其中添加gestureRecognizer。我的问题是如何检查View是否有特定的识别器?我需要这样的代码:ifcheckviewhasspecificrecognizer==false{addrecognizer}else{justskip.}我这样做是因为我有侧边栏菜单。当Sidebarmenu出现时,我想为当前索引页面内容ViewController添加手势。所以,我的代码工作正常,我只是不想在每次动画结束时都

ios - swift iOS : how to trigger next page using buttons

我有一个QuizViewController,它扩展了UIViewController、UIPageControllerDelegate和一个UIPageViewControllerDataSource。在QuizViewController.swift内部privatevarpageViewController:UIPageViewController?privatefunccreatePageViewController(){letpageController=self.storyboard!.instantiateViewControllerWithIdentifier("Qui

ios - 由于未捕获的异常 'NSInternalInconsistencyException' 而终止应用程序,原因 : 'Duplicate states in queue'

我正在开发一个使用UISlideViewController的项目。我知道这可能是一个重复的问题,但之前关于这个主题的帖子都没有帮助我。正如我设法理解的那样,我有一个特定的问题。我的应用程序在此block上崩溃。我以前读过,将所有与UI相关的工作都放在主线程中很重要。这是代码:pageViewController.setViewControllers([viewController],direction:direction,animated:animated,completion:{completedindispatch_async(dispatch_get_main_queue())

ios - UIPageViewController 和 UIPageControl 透明背景色 - iOS

我正在制作应用程序首次启动时的教程,并为此使用UIPageViewController。一切正常,但UIPageViewController的背景颜色没有变透明。一直是黑色,如下图:下面是我如何添加UIPageViewController(在标签栏Controller中).h文件:@interfaceCHMainTabViewController:UITabBarController@property(strong,nonatomic)UIPageViewController*pageViewController;@end.m文件(在viewDidLoad中)://Createpage

ios - UIPageViewController 和 UIPageControl 透明背景色 - iOS

我正在制作应用程序首次启动时的教程,并为此使用UIPageViewController。一切正常,但UIPageViewController的背景颜色没有变透明。一直是黑色,如下图:下面是我如何添加UIPageViewController(在标签栏Controller中).h文件:@interfaceCHMainTabViewController:UITabBarController@property(strong,nonatomic)UIPageViewController*pageViewController;@end.m文件(在viewDidLoad中)://Createpage