【发布时间】:2018-10-19 13:18:00
【问题描述】:
我正在 iOS 中实现登录。我想先放松到上一个 VC(IntroVC),并显示有关 IntroVC 已完成的已完成注册提醒。
(完成SignUp是Unwind函数。)
@IBAction func completingSignUp(_ segue: UIStoryboardSegue) {
let completedAlert = UIAlertController(title: "Completing", message: "Congratulations.", preferredStyle: .alert)
let ok = UIAlertAction(title: "OK", style: .default, handler: nil)
completedAlert.addAction(ok)
self.present(completedAlert, animated: true)
}
它只显示警报而不展开到 IntroVC。
我认为警报代码的位置似乎不正确。
我应该在哪里编写警报代码?
【问题讨论】:
标签: ios uialertcontroller