【发布时间】:2017-12-26 13:11:14
【问题描述】:
我正在尝试设计动画启动画面。 我创建了初始屏幕并在我的第一个屏幕上添加了一个转场,但我不确定在动画完成后如何启动第一个屏幕。
【问题讨论】:
-
使用完成处理程序
标签: swift animation view connect splash-screen
我正在尝试设计动画启动画面。 我创建了初始屏幕并在我的第一个屏幕上添加了一个转场,但我不确定在动画完成后如何启动第一个屏幕。
【问题讨论】:
标签: swift animation view connect splash-screen
UIView.animate(withDuration: 0.5, animations: {
// your animation
}) { (completed) in
let yourController = YourController()
self.navigationController?.pushViewController(yourController, animated: true)
}
【讨论】: