func adaptivePresentationStyleForPresentationController(controller: UIPresentationController) -> UIModalPresentationStyle { return UIModalPresentationStyle.None } } 这样就完成了。
animated:YES completion:nil];//present即可 } #pragma mark -- UIPopoverPresentationControllerDelegate -(UIModalPresentationStyle
article/details/115077471 主要功能:进入查看器之后,可左右滑动查看上/下张,并支持下滑视图退出查看器 在这里插入图片描述 private projects III 转场动画 UIModalPresentationStyle UIModalPresentationOverCurrentContext; self.transitioningDelegate = self; typedef NS_ENUM(NSInteger, UIModalPresentationStyle
. */ @property(nonatomic,assign) UIModalPresentationStyle modalPresentationStyle API_AVAILABLE(ios(3.2
除了跳转的效果,还有一个属性可以设置弹出的controler的填充效果,但是这个属性只在pad上有效,在iphone上无效,都是填充到整个屏幕: @property(nonatomic,assign) UIModalPresentationStyle modalPresentationStyle NS_AVAILABLE_IOS(3_2); //枚举如下 typedef NS_ENUM(NSInteger, UIModalPresentationStyle
我们需要用到一对属性 @property(nonatomic,assign) BOOL definesPresentationContext; @property(nonatomic,assign) UIModalPresentationStyle
是否被取消了 @property(nonatomic, readonly) BOOL transitionWasCancelled; //转场风格 @property(nonatomic, readonly) UIModalPresentationStyle
UIModalPresentationFullScreen模式显示presentedController,关于modalPresentationStyle在下面也通过注释说一下: typedef NS_ENUM(NSInteger, UIModalPresentationStyle