如何在swift中打开动画完成的另一个视图?

问题描述 投票:0回答:1

我正在尝试设计动画启动画面。我创建了启动画面并在第一个屏幕上添加了一个segue,但我不确定在动画结束时如何启动第一个屏幕。

swift animation view connect splash
1个回答
1
投票
    UIView.animate(withDuration: 0.5, animations: {
        // your animation
    }) { (completed) in
        let yourController = YourController()
        self.navigationController?.pushViewController(yourController, animated: true)
    }
© www.soinside.com 2019 - 2024. All rights reserved.