我正在关注此youtube视频https://www.youtube.com/watch?v=uVCFV668dSQ 11:14,但出现此错误。我正在将这个应用程序创建为学校项目,我希望新用户输入他们的姓名,并且该应用程序会自动记住他们的姓名并在首页中使用它]
import UIKit class ViewController: UIViewController { @IBOutlet weak var EmailSignIn: UITextField! @IBOutlet weak var PasswordSignIn: UITextField! override func viewDidLoad() { super.viewDidLoad() EmailSignIn.delegate = self PasswordSignIn.delegate = self // Do any additional setup after loading the view. view.layer.contents = #imageLiteral(resourceName: "LoginPagesBackground").cgImage } @IBAction func EnterTapped(_ sender: Any) { textView.text = "User Name: \(EmailSignIn.text!)\nPassword: \(PasswordSignIn.text!)\" } } extension ViewController : UITextFieldDelegate { func textFieldShouldReturn(_ textField: UITextField) -> Bool { textField.resignFirstResponder() return true } }
而且我一直收到此错误
Unterminated string literal
我正在观看此youtube视频https://www.youtube.com/watch?v=uVCFV668dSQ 11:14,并且出现此错误。我正在将这个应用程序创建为学校项目,并且我希望新用户输入其姓名...
更改此行: