myell0w/MTStatusBarOverlay

quick fix to stop crashing on pre 4.0 devices

Closed this issue · 2 comments

  • (MTStatusBarOverlay *)sharedInstance {

    if (![[UIView class] respondsToSelector:@selector(animateWithDuration:animations:completion:)])
    {
    return NULL;
    }

etc etc etc

}

this just disables the status bar completely on devices which can't support the animations.

Not as good as making everything work - but better than crashing!

Thanks, I added your fix.

[[UIView class] respondsToSelector:@selector(animateWithDuration:animations:completion:)] can be written as [UIView respondsToSelector:@selector(animateWithDuration:animations:completion:)]