我一直在我的新 iOS 应用程序开发中使用 Parse.com 服务,到目前为止它就像一个魅力,但是我一直在尝试使用 swift 和 Objective-C 中的代码修改 PFLogInViewController 中的登录按钮文本,但是结果相同(无!)
对象
[logInViewController.logInView.logInButton setTitle:@"Test!" forState:UIControlStateNormal];
logInViewController.logInView.logInButton.titleLabel.text = @"Another Test";
迅速
self.logInView.logInButton.setBackgroundImage(UIImage(named: "loginBtn"), forState: UIControlState.Normal )