在Swift中编写我的第一个应用程序 - “错误:通过pid'2423'附加失败 - 无法附加”

时间:2016-08-10 23:14:41

标签: xcode

当我在Swift中运行我的第一个程序时(我只学习了大约一个月的语言 - 我的第一个编程语言),我收到错误:“错误:通过pid'2423'附加失败 - 无法附上”。如果有人能为我指出问题,这是我的代码。这也是我在Stackoverflow中的第一个问题,所以如果这是一个合适的问题,请告诉我。谢谢!

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var nameText: UITextField!
    @IBOutlet weak var nameDisplayed: UILabel!

    @IBAction func submitButton(_ sender: AnyObject) {

        nameText.text = nameDisplayed.text
    }

        override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

0 个答案:

没有答案