quick fix to stop crashing on pre 4.0 devices
Closed this issue · 2 comments
ConfusedVorlon commented
-
(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!
myell0w commented
Thanks, I added your fix.
newacct commented
[[UIView class] respondsToSelector:@selector(animateWithDuration:animations:completion:)]
can be written as [UIView respondsToSelector:@selector(animateWithDuration:animations:completion:)]