if (PFUser.currentUser() == nil) {
self.logInViewController.fields = PFLogInFields.UsernameAndPassword | PFLogInFields.LogInButton | PFLogInFields.SignUpButton | PFLogInFields.PasswordForgotten | PFLogInFields.DismissButton
var logInLogoTitle = UILabel()
logInLogoTitle.text = "Cinderella"
self.logInViewController.PFLoginview.logo = logInLogoTitle //error: could not find member 'logo'
self.logInViewController.delegate = self
var signUpLogoTitle = UILabel()
signUpLogoTitle.text = "Cinderella"
self.signUpViewController.PFSignUpView.logo = signUpLogoTitle // error: could not find member 'logo'
self.signUpViewController.delegate = self
self.logInViewController.signUpController = self.signUpViewController
}
我还是初学者,不知道这个错误意味着什么.. 有人可以帮我解决问题吗?
答案 0 :(得分:1)
您使用的是课程PFLoginview
,而不是属性logInView
,您可以更改为徽标,如下所示
self.logInViewController.logInView.logo = logInLogoTitle