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

Double page control #2

Closed
xradeon opened this issue Apr 26, 2016 · 2 comments
Closed

Double page control #2

xradeon opened this issue Apr 26, 2016 · 2 comments

Comments

@xradeon
Copy link

xradeon commented Apr 26, 2016

I wanted to show the alert with some transparency so I used the next settings:

        let alpha: CGFloat = 0.82
        let blueAlpha = UIColor(red: 3/255, green: 169/255, blue: 244/255, alpha: alpha)

        alertView.colorForAlertViewBackground = UIColor(white: 0, alpha: alpha)
        alertView.colorButtonText = UIColor(white: 1, alpha: alpha)
        alertView.colorButtonBottomBackground = blueAlpha
        alertView.colorTitleLabel = UIColor(white: 1, alpha: alpha)
        alertView.colorDescriptionLabel =  UIColor(white: 1, alpha: alpha)
        alertView.colorPageIndicator =  UIColor(white: 1, alpha: alpha)
        alertView.colorCurrentPageIndicator = blueAlpha

But then the page control background area was darkened. I realized that the backgroundColor of the page control was the same used in the alert view, so I made a quick mod to the next line in AlertPageViewController:

    self.pageControl.backgroundColor = alertview.colorForAlertViewBackground

to

    self.pageControl.backgroundColor = UIColor.clearColor()

Now it seems like there are two page controls overlapped.

PhilippeBoisney added a commit that referenced this issue Apr 27, 2016
@PhilippeBoisney
Copy link
Owner

I've just fixed it on release 1.5. Thank you (Again) for your help :)

@xradeon
Copy link
Author

xradeon commented Apr 28, 2016

Thanks to you for this great little control and for the quick fix!

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