PFLogInViewController logInView.usernameField.attributedPlaceholder 不见了
PFLogInViewController logInView.usernameField.attributedPlaceholder is gone
在我的 PFLogInViewController 子class 的 CustomLogInViewController class 中,我有这样的代码:
@implementation CustomLogInViewController
- (void)viewDidLoad {
[super viewDidLoad];
.......
self.logInView.usernameField.attributedPlaceholder = sOME_VALUE;
self.logInView.passwordField.attributedPlaceholder = sOME_OTHER_VALUE;
.......
}
这并没有产生什么特别的问题,但是最近(在 POD 更新之后),我收到了这个错误消息:
Property 'attributedPlaceholder' cannot be found in forward class object 'PFTextField'
有没有其他人遇到过这种情况并有解决方案?
这个错误通常指出Xcode无法识别您的符号。
尝试将此插入到您的 .h 文件中:
#import PFTextField.h
在我的 PFLogInViewController 子class 的 CustomLogInViewController class 中,我有这样的代码:
@implementation CustomLogInViewController
- (void)viewDidLoad {
[super viewDidLoad];
.......
self.logInView.usernameField.attributedPlaceholder = sOME_VALUE;
self.logInView.passwordField.attributedPlaceholder = sOME_OTHER_VALUE;
.......
}
这并没有产生什么特别的问题,但是最近(在 POD 更新之后),我收到了这个错误消息:
Property 'attributedPlaceholder' cannot be found in forward class object 'PFTextField'
有没有其他人遇到过这种情况并有解决方案?
这个错误通常指出Xcode无法识别您的符号。
尝试将此插入到您的 .h 文件中:
#import PFTextField.h