swift - Postfix is reserved error -


the below code entered swift 2 , getting error saying "postfix reserved". can tell me how went wrong?

if (pfuser.currentuser() == nil){  self.loginviewcontroller.fields =  pfloginfields.usernameandpassword | pfloginfields.loginbutton | pfloginfields.signupbutton | pfloginfields.passwordforgotten | pfloginfields.dismissbutton 

can ensure or compound expression not contain spurious spaces?. can spot 1 before .loginbutton. have corrected here. please check-

if (pfuser.currentuser() == nil){  self.loginviewcontroller.fields =  pfloginfields.usernameandpassword | pfloginfields.loginbutton | pfloginfields.signupbutton | pfloginfields.passwordforgotten | pfloginfields.dismissbutton 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -