myell0w / MTStatusBarOverlay

A custom iOS status bar overlay seen in Apps like Reeder, Evernote and Google Mobile App
MIT License
1.92k stars 325 forks source link

iOS 5.1 Icon Graphics Not Working #44

Closed bluesuedesw closed 12 years ago

bluesuedesw commented 12 years ago

The graphics for the various status bar icons are not displaying properly with iOS 5.1.

This is how the success checkmark its currently rendering, other graphics are also not displaying as expected:

Status Bar issue

misterwell commented 12 years ago

I was able to resolve this issue by modifying line 129 of MTStatusBarOverlay.m to:

#define kFinishedFontSize   ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.1f) ? 12.f : 22.f

For some reason it appears the font was changed in 5.1 to affect this, but the original size still holds true for versions prior to 5.1, which is why the macro now contains logic to detect this and adjust the font size appropriately.

I'm not sure if this is the most efficient way to implement this, but at least this is a temporary workaround for people using the library until an official fix is committed.

myell0w commented 12 years ago

Thanks for reporting, should now be fixed.