首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Rindew的iOS技术分享

    使iPhone也可以拥有iPad的pop效果

    iOS 8 之后新增了 UIPresentationController 控制器,用于所有的界面转场。在以前,popViewController只适用于iPad。 UIPopoverPresentationControllerDelegate -(UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController

    1.1K40发布于 2018-06-14
  • 来自专栏肘子的Swift记事本

    如何在SwiftUI中实现interactiveDismissDisabled

    其中: •presentationControllerShouldDismiss(_ presentationController: UIPresentationController) -> Bool决定了是否允许通过手势来 dismiss sheet•presentationControllerWillDismiss(_ presentationController: UIPresentationController)用户尝试使用手势取消时的执行此方法 attempToDismiss = attempToDismiss } func presentationControllerShouldDismiss(_ presentationController: UIPresentationController isDisable } func presentationControllerDidAttemptToDismiss(_ presentationController: UIPresentationController

    5.6K40编辑于 2022-07-28
  • 来自专栏iOS开发~

    iOS_Custom Transition Animation 自定义转场动画

    ---- 4、UIPresentationController present和dismiss动画如果想在一个中间的viewController进行,则在实现UIViewControllerTransitioningDelegate 协议时,不要实现以上2个返回animator的方法,而是实现以下返回UIPresentationController的方法: // 返回实现 present-dismiss 动效的VC func presentationController , source: UIViewController) -> UIPresentationController?

    78521编辑于 2023-10-18
  • 来自专栏韦弦的偶尔分享

    UIViewController初始化没有 init 导致的 Bug

    _setPresentedViewController:] + 84 13 UIKitCore 0x00007fff46a0b105 -[UIPresentationController endAppearanceTransition:] + 196 24 UIKitCore 0x00007fff46a0bf2b __48-[UIPresentationController

    2.9K30发布于 2019-11-11
  • 来自专栏TechBox

    (转)iOS开发之UICollectionViewController系列(一) :Ready CollectionViewController

    Size Class有关,这个类封装了像水平和竖直方向的Size Class等信息,iOS8的UIKit中大多数UI的基础类(包括UIScreen, UIWindow, UIViewController, UIPresentationController UIViewController 和 UIPresentationController(iOS8的新特性,在这儿不做过多介绍)’象为该协议提供默认的实现方法。

    6.3K40发布于 2018-06-05
  • 来自专栏一“技”之长

    iOS中UIPopoverController使用详解

    在iOS8之后,系统提供了UIPresentationController来代替她,UIPresentationController可以兼容iPhone与iPad。

    2.2K20发布于 2018-08-15
  • 来自专栏青玉伏案

    iOS开发之窥探UICollectionViewController(一) -- Ready Your CollectionViewController

    Size Class有关,这个类封装了像水平和竖直方向的Size Class等信息,iOS8的UIKit中大多数UI的基础类(包括UIScreen, UIWindow, UIViewController, UIPresentationController UIViewController 和 UIPresentationController(iOS8的新特性,在这儿不做过多介绍)’象为该协议提供默认的实现方法。

    2.4K60发布于 2018-01-11
  • 来自专栏我杨某人的青春满是悔恨

    在 iPhone 上使用 Popover Segue

    UIPopoverPresentationControllerDelegate { func adaptivePresentationStyleForPresentationController(controller: UIPresentationController

    1.6K50发布于 2018-09-10
  • 来自专栏移动端开发

    iOS 转场动画探究(二)

    说第三个小例子之前我们还得熟悉一下这个:UIPresentationController,它提供了四个函数来定义present和dismiss动画开始前后的操作:        1、presentationTransitionWillBegin UIViewControllerAnimatedTransitioning都写在了CustomPresentationController当中,这个CustomPresentationController就是集成与我们前面提到过的UIPresentationController ,这个UIPresentationController前面提到的时候说的什么可以回忆一下,再在代码中去理解:       从初始化方法开始了解,说说我们需要注意的地方: 1、初始化 /** 初始化

    1.1K40发布于 2018-07-31
  • 来自专栏移动端开发

    iOS 转场动画探究(二)

    说第三个小例子之前我们还得熟悉一下这个:UIPresentationController,它提供了四个函数来定义present和dismiss动画开始前后的操作:        1、presentationTransitionWillBegin UIViewControllerAnimatedTransitioning都写在了CustomPresentationController当中,这个CustomPresentationController就是集成与我们前面提到过的UIPresentationController ,这个UIPresentationController前面提到的时候说的什么可以回忆一下,再在代码中去理解:       从初始化方法开始了解,说说我们需要注意的地方: 1、初始化 /** 初始化

    1.7K70发布于 2018-01-15
  • 来自专栏移动端开发

    iOS 转场动画探究(一)

    interactionControllerForDismissal:(id <UIViewControllerAnimatedTransitioning>)animator{}; // 这个方法的返回值是UIPresentationController // UIPresentationController提供了四个函数来定义present和dismiss动画开始前后的操作,这个我们在下面再具体的详细说 - (nullable UIPresentationController

    3.2K50发布于 2018-01-15
  • 来自专栏一“技”之长

    玩转iOS转场动画 原

    interactionControllerForDismissal:(id <UIViewControllerAnimatedTransitioning>)animator; //iOS8后提供的新接口 返回UIPresentationController 处理转场 - (nullable UIPresentationController *)presentationControllerForPresentedViewController:(UIViewController

    1.9K51发布于 2018-08-15
  • 来自专栏酷酷的哀殿

    Objective-C/kotilin 混编项目函数调用栈异常排查笔记(1) - Fast Unwind 与序章

    endAppearanceTransition:] + 232 4 UIKitCore 0x00007fff23e18dda __48-[UIPresentationController 0x00007fff23f47fbc -[UIViewController _endAppearanceTransition:] + 232 4 0x00007fff23e18dda __48-[UIPresentationController

    1.8K10发布于 2021-03-03
  • 来自专栏云原生布道专栏

    【IOS开发基础系列】UIAlertController专题

    全新的UIPresentationController在实现视图控制器间的过渡动画效果和自适应设备尺寸变化效果(比如说旋转)中发挥了重要的作用,它有效地节省了程序员们的工作量(天地良心啊)。

    2.6K30编辑于 2023-10-16
  • 来自专栏戴铭的博客

    深入剖析Auto Layout,分析iOS各版本新增特性

    self-sizing-cells/ UIViewController新增两个方法,用来处理UITraitEnvironment协议,UIKit里有UIScreen,UIViewController,UIView和UIPresentationController

    1.6K10发布于 2020-06-16
  • 来自专栏TechBox

    跟着官方文档学习3D Touch

    采用了UITraitEnvironment协议的类有:UIScreen、UIWindow、UIViewController、UIPresentationController和UIView。

    6.9K50发布于 2018-06-05
  • 来自专栏腾讯社交用户体验设计

    [ISUX译]iOS 9人机界面指南(四):UI元素(下)- 腾讯ISUX

    API提示: 如需在代码中使用模态视图,你可以创建一个 UIPresentationController.

    19K30发布于 2018-06-29
领券