我是新来解析。我正在使用ios SDK进行应用程序尝试实现登录和注册。我下载了最新版本(1.2.21)。我正在使用PFSignUpViewController来实现注册。我尝试了继承控制器来定制它,但我看到了一些问题。首先,我似乎无法更改字段占位符名称的用户名或密码。密码字段甚至不显示占位符;它是空的。其次,我无法打开附加领域。尽管有定制代码,没有额外的字段显示。有谁知道什么可能导致这种情况?或者它可能是分析框架中的错误? - 下面是我的PFSignUpViewController的子类。解析ios sdk默认注册不起作用
#import "QSignUpViewController.h"
@interface QSignUpViewController()
@end
@implementation QSignUpViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.fields = PFSignUpFieldsUsernameAndPassword |
PFSignUpFieldsSignUpButton | PFSignUpFieldsAdditional;
self.signUpView.usernameField.placeholder = @"Email";
self.signUpView.passwordField.placeholder = @"Password";
[self.signUpView.additionalField setPlaceholder:@"Phone Number"];
[self setEmailAsUsername: YES];
//self.signUpView.emailAsUsername = YES;
}