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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -