ALAlertBanner icon indicating copy to clipboard operation
ALAlertBanner copied to clipboard

Color is distorted on iPhone Retina (5-inch 64-bit) (iPhone 5S)

Open johanb opened this issue 11 years ago • 5 comments

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.

johanb avatar Feb 12 '14 11:02 johanb

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.

massdonati avatar Feb 24 '14 03:02 massdonati

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

massdonati avatar Feb 24 '14 03:02 massdonati

Same problem for me.

mbrgm avatar Jun 17 '14 05:06 mbrgm

Better to use CGFloat.

nurimanizam avatar Jun 29 '14 14:06 nurimanizam

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.

edalford11 avatar Jan 20 '15 20:01 edalford11