samedi 28 mai 2016

swift2 Xcode7.0 Expected ',' separator [duplicate]

This question already has an answer here:

if ( username.isEqualToString("")||
            useremail.isEqualToString("") ||userpassword.isEqualToString("")||
            userphonenumper.isEqualToString("")
            ){
            let alert = UIAlertController(title: "Sign Up Failed!", message:"Please enter your data", preferredStyle: .Alert)
            alert.addAction(UIAlertAction(title: ",ok", style: .Default) { _ in })
            self.presentViewController(alert, animated: true){}
        } 

I use Xcode7 and Swift2 when i run the application I get this error

the error in if statment

if ( username.isEqualToString("")||
            useremail.isEqualToString("") ||

Aucun commentaire:

Enregistrer un commentaire