Closed xradeon closed 8 years ago
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.
I've just fixed it on release 1.5. Thank you (Again) for your help :)
Thanks to you for this great little control and for the quick fix!
I wanted to show the alert with some transparency so I used the next settings:
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:
to
Now it seems like there are two page controls overlapped.