在PFLogInViewController的我的子类的CustomLogInViewController类中,我有这种代码:
@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