测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2016年11月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 Daron Tancharoen 维护。
使用此 Segue 以-speakingViewController 的形式呈现,类似于 UINavigationController(push) 样式 - 左右滑动。
尝试示例项目以获取更多信息。
iOS 8.0+, Swift 3.0
呈现 - 在您的 storyboard 中,将类 DTSlidingLeftSegue
或 DTSlidingRightSegue
分配给一个 segue。
返回 - 要关闭 viewModelController,您需要创建一个返回 segue,并用类 DTSlidingLeftUnwindSegue
或 DTSlidingLeftUnwindSegue
分配。
注意:在 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 文件。