Search code examples
iosobjective-cparse-platformpfloginviewcontrollerparse-ios-sdk

PFLogInViewController logInView.usernameField.attributedPlaceholder is gone


In a CustomLogInViewController class of mine subclass of PFLogInViewController, I had this kind of code:

@implementation CustomLogInViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    .......
    self.logInView.usernameField.attributedPlaceholder = sOME_VALUE;
    self.logInView.passwordField.attributedPlaceholder = sOME_OTHER_VALUE;
    .......
}

And this was generating no particular issue, but recently (after POD updates), I get this error messages:

Property 'attributedPlaceholder' cannot be found in forward class object 'PFTextField'

Did anyone else encounter this case and has a solution for it?


Solution

  • This error usually points out that Xcode can not recognize your symbol.

    Try to insert this in your .h file:

    #import PFTextField.h