Swift Error: Editor placeholder in source file

后端 未结 7 672
长发绾君心
长发绾君心 2020-12-06 03:39

Hello I am implementing a graph data structure. When I try to build the application the I get the error \"Editor placeholder in source file\"

The full graph implemen

7条回答
  •  [愿得一人]
    2020-12-06 04:31

    If you have this error while you create segues with the view controllers not with the UI elements you have to change sender: Any? to this

    @IBAction func backButtonPressed(_ sender: Any) {
            performSegue(withIdentifier: "goToMainScreen", sender: self)
    
        }
    

    It will work.

提交回复
热议问题