大家好,我对Xcode相当陌生。每当我添加视图控制器并从上一个屏幕对其执行 segue 时,它看起来像这样。
视图控制器的图片
我希望它看起来全屏,而不是让它上下滑动。
这是它连接到的视图
这是代码。
if loginMode{
Auth.auth().signIn(withEmail: email, password: password) { (result, error) in
if error == nil {
self.performSegue(withIdentifier: "authSuccess", sender: nil)
} else {
//print(error)
}
}
}
iOS 13 更改动画
试试这个
let VC1 = self.storyboard!.instantiateViewController(withIdentifier: "example")
VC1.modalPresentationStyle = .fullScreen
self.navigationController!.present(VC1, animated: true, completion: nil)
当你展示它时,这样做
YOUR_VIEW_CONTROLLER.modalPresentationStyle = .fullScreen