DTSlidingModalSegue 0.0.3

DTSlidingModalSegue 0.0.3

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发布最后发布2016年11月
SwiftSwift 版本3.0
SPM支持 SPM

Daron Tancharoen 维护。



  • Daron Tancharoen

DTSlidingModalSegue

使用此 Segue 以-speakingViewController 的形式呈现,类似于 UINavigationController(push) 样式 - 左右滑动。

尝试示例项目以获取更多信息。

系统需求

iOS 8.0+, Swift 3.0

如何使用

呈现 - 在您的 storyboard 中,将类 DTSlidingLeftSegueDTSlidingRightSegue 分配给一个 segue。

返回 - 要关闭 viewModelController,您需要创建一个返回 segue,并用类 DTSlidingLeftUnwindSegueDTSlidingLeftUnwindSegue 分配。

注意:在 iOS8 及以下版本中,可能需要重写 segueForUnwindingToViewController

override func segueForUnwindingToViewController(toViewController: UIViewController, fromViewController: UIViewController, identifier: String?) -> UIStoryboardSegue? {
    return DTSlidingRightUnwindSegue(identifier: identifier, source: fromViewController, destination: toViewController)
}

如果您不知道 unwinding segue 是什么,请参阅此链接 http://stackoverflow.com/questions/12561735/what-are-unwind-segues-for-and-how-do-you-use-them

作者

Daron Tancharoen

许可证

DTLoadingIndicator 依照 MIT 许可证发布,请参阅 LICENSE 文件。