私は私の教会のためのアプリを作るしようとしているとYTチュートリアルの束を見ていますが、私はエラーの多くを取得しています:これらのXcodeエラーは誰でも助けてくれますか?
import UIKit
import Firebase
class ViewController: UIViewController {
@IBOutlet weak var emailField: UITextField!
@IBOutlet weak var passwordField: UITextField!
@IBOutlet weak var myWebView: UIWebView!
@IBAction func Website(sender AnyObject) {
if let url = NSURL(string: :"http://www.sermonaudio.com/source_detail.asp?sourceid=cfbc1")
UIApplication.sharedApplication().openURL(url) {
}
var userUid: String!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
getVideo(videoCode: "qS6tvqL1N24")
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
func goToCreateUserVC(){
performSegue(withIdentifier: "Feed", sender: nil)
}
func goToFeedVC() {
performSegue(withIdentifier: "Feed", sender: nil)
}
func getVideo(videoCode:String!)
{
let url = URL(string: "https://www.youtube.com/embed/\(videoCode)")
myWebView.loadRequest(URLRequest(url: url!))
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "SignUp" {
if let destination = segue.destination as? UserVC {
if userUid != nil {
destination.userUid = userUid
}
if emailField.text != nil {
destination.emailField = emailField.text
}
if passwordField.text != nil {
destination.passwordField = passwordField.text
}
}
}
}
@IBAction func signInTapped(_ sender: Any){
if let email = emailField.text, let password = passwordField.text {
FIRAuth.auth()?.signIn(withEmail: email, password: password, completion:
{ (user,error) in
if error == nil {
if let user = user {
self.userUid = user.uid
self.goSignUpVC()
}
} else {
self.goToCreateUserVC()
}
});
}
}
}
}
Stackoverflowはあなたの個人的なヘルプデスクではありません。 [ask]をお読みください。 – dandan78