swift2 Xcode7.0预期','分隔器

时间:2016-05-28 14:43:08

标签: ios swift if-statement swift2 xcode7

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){}
        } 

我在运行应用程序时使用Xcode7和Swift2我收到此错误

if statment

中的错误
if ( username.isEqualToString("")||
            useremail.isEqualToString("") ||

0 个答案:

没有答案