Cannot convert value of type “ViewController.Type” to expected argument type “UIViewController”

前端 未结 2 1633
后悔当初
后悔当初 2021-02-20 08:27

I\'m trying to make an Alert Controller in which, if the Answer is \"Ok\", then it will perform a segue to a MapView. Here\'s the full code:

@IBAction func teste         


        
2条回答
  •  無奈伤痛
    2021-02-20 09:14

    Use performSegue(withIdentifier: "teste", sender: self). I'm not sure what you're trying to achieve with the (Any). before self, since self on a class name returns the type of the class, not an instance of the class.

提交回复
热议问题