I am using Parse and ParseUI. I want my subclass of PFLoginViewController to have a transparent background. In the future, I want to blur the look on the background.
But ... As soon as the PFLoginViewController animation is complete, the background turns black ... So far, during the animation, the background was transparent.
func presentLogin() { var loginViewController = LoginViewController() var signupViewController = SignUpViewController() loginViewController.fields = .UsernameAndPassword | .LogInButton | .PasswordForgotten | .SignUpButton | PFLogInFields.DismissButton signupViewController.fields = .UsernameAndPassword | .Email | .DismissButton | .SignUpButton loginViewController.delegate = self loginViewController.logInView.backgroundColor = UIColor.clearColor() loginViewController.logInView.opaque = false signupViewController.delegate = self loginViewController.signUpController = signupViewController self.presentViewController(loginViewController, animated: true) { () -> Void in
My subtitle used to log in:
class LoginViewController: PFLogInViewController { @IBOutlet weak var _nmcLogoLabel: UILabel! override func viewDidLoad() { super.viewDidLoad()
How can I make it transparent?
Ps Applying clearColor to backgroundColor in a subclass doesn't matter
P5ycH0 Dec 27 '14 at 17:30 2014-12-27 17:30
source share