Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 有没有办法摆脱带有故事板的短ViewController?_Ios_Swift_Uiviewcontroller - Fatal编程技术网

Ios 有没有办法摆脱带有故事板的短ViewController?

Ios 有没有办法摆脱带有故事板的短ViewController?,ios,swift,uiviewcontroller,Ios,Swift,Uiviewcontroller,我的代码是 else if indexPath.row == 4 { FUser.logOutCurrentUser { (success) in if success { tableView.deselectRow(at: indexPath, animated: true) let vc = UIStoryboard.init(name: "Main",

我的代码是

else if indexPath.row == 4 {

            FUser.logOutCurrentUser { (success) in
                if success {
                    tableView.deselectRow(at: indexPath, animated: true)
                    let vc = UIStoryboard.init(name: "Main", bundle: nil).instantiateViewController(identifier: "welcome") as! Login_VC
                    self.present(vc, animated: true, completion: nil)
                } else {
                    self.alertController(title: "Alert !", message: "Network error. Try again in sometime.", titleAction: "Ok")
                }
            } // end of fuser
        } // end of else index 4

将UIViewcontroller的
modalPresentationStyle
automatic
更改为
fullscreen

你也可以看看这篇文章:

此线程的解决方案:

let vc = UIViewController()
vc.modalPresentationStyle = .fullScreen //or .overFullScreen for transparency
self.present(vc, animated: true, completion: nil)
您还可以在Xcode接口生成器中更改此属性