我正在尝试设计动画启动画面。 我创建了初始屏幕并向我的第一个屏幕添加了一个 segue,但我不确定在动画完成后如何启动第一个屏幕。
最佳答案
UIView.animate(withDuration: 0.5, animations: {
// your animation
}) { (completed) in
let yourController = YourController()
self.navigationController?.pushViewController(yourController, animated: true)
}
关于swift - 如何在 swift 中打开另一个关于动画完成的 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47979135/