ALAlertBanner
ALAlertBanner copied to clipboard
Color is distorted on iPhone Retina (5-inch 64-bit) (iPhone 5S)
Screenshots:
- http://cl.ly/Tt1o
- http://cl.ly/Tsyi
Just started using the library and am quite happy with the result. Very useful! Will try to investigate the bug myself later. Just thought I'd report it in case somebody already knows a solution.
Initialisation code:
ALAlertBanner *banner = [ALAlertBanner alertBannerForView:appDelegate.window style:ALAlertBannerStyleNotify position:ALAlertBannerPositionUnderNavBar title:@"Overboden" subtitle:@"Op Renault Clio" tappedBlock:^(ALAlertBanner *alertBanner) {
[self showProductWithID:1121848];
}];
Works great on iPhone 4 / 4S / Simulators: iPhone Retina (4-inch), iPhone Retina (3.5-inch).
Bug occurs on iPhone 5S or Simulator: iPhone Retina (4-inch 64-bit) only.
It's very weird, I've used the same library in two different apps for iphone 5s and on one it works and on the other it doesn't.
I think I found the bug:
- (UIColor *)darkerColor {
double h, s, b, a;
if ([self getHue:&h saturation:&s brightness:&b alpha:&a])
return [UIColor colorWithHue:h saturation:s brightness:b * 0.75 alpha:a];
return nil;
}
the problem was that instead of double they were float. double fixed it for the device but not for the simulator
Same problem for me.
Better to use CGFloat.
This issue is still happening for me. I'm using an iPhone 6 plus. Sucks because this library is the one that works best but it's unusable because the color is so bad.