I just downloaded the latest Parse SDK for iOS (1.2.21) because the change log shows that the EmailAsUsername attribute has been fixed. However while it works for the PFLoginViewController it doesn't seem to work for PFSignUpViewController.
I subclassed both controllers and do the
OPLoginViewController *logInViewController = [[OPLoginViewController alloc] init];
logInViewController.delegate = self;
logInViewController.fields = PFLogInFieldsUsernameAndPassword | PFLogInFieldsFacebook | PFLogInFieldsSignUpButton ;
logInViewController.emailAsUsername = YES;
// Customize the Sign Up View Controller
OPSignUpViewController *signUpViewController = [[OPSignUpViewController alloc] init];
signUpViewController.delegate = self;
signUpViewController.fields = PFSignUpFieldsDefault | PFSignUpFieldsAdditional ;
signUpViewController.emailAsUsername = YES;
It works like a charm for the loginViewController however the signUpViewController totally ignores the setting.
Can anyone confirm this behavior or tell me what I am doing wrong?
Thanks