YLFPresentationController
该项目灵感来源于 PresentBottom
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
UIViewController *controller = [[UIViewController alloc] init];
YLFTransitioningManager *transitioningManager = [[YLFTransitioningManager alloc] initWithViewController:controller];
[self presentViewController:controller animated:YES completion:nil];
要求
iOS 8+
安装
YLFPresentationController 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:
target 'Demo' do
pod 'YLFPresentationController'
end
待办事项
- 支持自定义过渡
参考
- 博客
ViewController Transition
视图控制器转场
WWDC 2013会议笔记 - iOS7中的视图控制器切换
- Apple
UIViewControllerTransitionCoordinator
UIPresentationController
自定义展示创建
许可证
YLFPresentationController在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。