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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -