Objective c Xcode解析登录屏幕字段
我正在寻找一种解决方案来更改解析时的登录字段,但我不明白为什么会出现错误: 在对象类型:FrontViewController上找不到属性“logInView” 我的代码是:Objective c Xcode解析登录屏幕字段,objective-c,parse-platform,Objective C,Parse Platform,我正在寻找一种解决方案来更改解析时的登录字段,但我不明白为什么会出现错误: 在对象类型:FrontViewController上找不到属性“logInView” 我的代码是: (void)viewDidLoad { [super viewDidLoad]; [self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"grå-baggrund-pattern-50.jpg"]
(void)viewDidLoad {
[super viewDidLoad];
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"grå-baggrund-pattern-50.jpg"]]];
[self.loginView setTitle:@"Some text" forState:UIControlStateNormal];
[self.logInView signUpButton setTitle:@"Some text" forState:UIControlStateHighlighted];
您的类是登录或注册视图控制器的委托,因此它参与管理视图,但不拥有视图,因此您没有对视图的直接引用。因此,您尝试使用的属性不存在
您应该创建和显示登录或注册视图控制器,并访问其视图以更改所需的属性。什么是
FrontViewController
,它是如何定义的?我的FrontViewController是:@interface FrontViewController:UIViewController