ios - Parse Log In <Use of unresolved identifier 'PFLogInFieldsUsernameAndPassword'> -
i've been having 1 huge issue tying entire app because keeps killing builds. bridging header below:
#import <parse/parse.h> #import <parseui/parseui.h> #import <bolts/bolts.h>
frameworks have been downloaded properly. in view controller tried:
self.loginviewcontroller.fields = pfloginfieldsusernameandpassword.value | pfloginfieldsloginbutton.value | pfloginfieldssignupbutton.value | pfloginfieldspasswordforgotten.value | pfloginfieldsdismissbutton.value
to create custom login page. however, met error use of unresolved identifier 'all fields'. tried:
loginviewcontroller.fields = pfloginfields( pfloginfieldsusernameandpassword.value | pfloginfieldsloginbutton.value | pfloginfieldssignupbutton.value | pfloginfieldsfacebook.value | pfloginfieldstwitter.value | pfloginfieldspasswordforgotten.value )
per advice of https://www.parse.com/questions/parse-swift-error-with-login-view-controller-fields didn't work.
please help.
thanks,
maxwell
you need this:
pfloginfields.usernameandpassword | pfloginfields.loginbutton | pfloginfields.signupbutton | pfloginfields.facebook | pfloginfields.twitter | pfloginfields.passwordforgotten
when pfloginfields
enumerated type imported use swift, "pfloginfields" prefix of enumerated values stripped off, "pfloginfieldsusernameandpassword" becomes "usernameandpassword", "pfloginfieldsloginbutton" becomes "loginbutton", etc. access enumerated values of enumerated type, use syntax
<enumerated type>.<enumerated value>
Comments
Post a Comment