Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlertView swift #196

Open
Nexmind opened this issue Apr 6, 2016 · 1 comment
Open

AlertView swift #196

Nexmind opened this issue Apr 6, 2016 · 1 comment

Comments

@Nexmind
Copy link

Nexmind commented Apr 6, 2016

Hi,

I have a little problem with the FUIAlertView in swift.... This code is in an @IBAction when touch a button:

    let alertView = FUIAlertView()
    alertView.title = "Oops !"
    alertView.message = "You just cancel your login :-("
    alertView.addButtonWithTitle("Ok")
    alertView.show()

And my screen change for look like that, under my current view:
lebonbug

@coeustong
Copy link

Hello, Nexmind,
The FUIAlertView has some properties. If you set any of them, you have to set all of them. In order to set the alertView's backgroundColor, you can set like this :
alertView.alertContainer.backgroundColor = [UIColor whiteColor];

Similarly,you can set self.view.backgroundColor after alertView showed,just like this :
alertView.backgroundOverlay.backgroundColor = [UIColor clearColor];

It's not enough to set the properties mentioned above, you should also set all of the following properties :
alertView.titleLabel.textColor
alertView.titleLabel.font
alertView.messageLabel.textColor
alertView.messageLabel.font
alertView.defaultButtonColor
alertView.defaultButtonShadowColor
alertView.defaultButtonFont
alertView.defaultButtonTitleColor

Have a nice day~😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants