terryworona / TWMessageBarManager

An iOS manager for presenting system-wide notifications via a dropdown message bar.
MIT License
1.77k stars 191 forks source link

Message view display location wrong in iPad 6.1 #11

Closed simplelife-patrick closed 10 years ago

simplelife-patrick commented 10 years ago

Firstly this lib works fine for me both in iPhone5(iOS 7.1beta), iPhone5(iOS 6.1.2) and iPad mini 1(iOS 7.0.4), the message view can be displayed under status bar correctly. But in my iPad 3(iOS 6.1), the message view can not be displayed fully, a part of it(begin from top) is missing...

terryworona commented 10 years ago

Can you provide a screenshot?

simplelife-patrick commented 10 years ago

Screenshot is here, as you can see the message view display is not correct under iPad 3(iOS 6.1), (note: running app is for iPhone, so it is running on iPad with "2x" size.

testmessagebarmanager

terryworona commented 10 years ago

Does it display correctly @ 1x?

simplelife-patrick commented 10 years ago

It's also wrong under "1x". I'm guessing the issue might be about "view controller status bar attribute" in Info.plist. Because the screenshot looks like just missing "20" pixels which status bar has the same height.

terryworona commented 10 years ago

Cool thanks, I'll look into it.

simplelife-patrick commented 10 years ago

Hi, I'd like to apology for this issue, it's totally my fault as I forgot I have modified your codes about MessageView location as below: _messageBarOffset = [[UIApplication sharedApplication] statusBarFrame].size.height; After roll it back everything is OK for me now. Thanks for your time, and again, it's a very good and useful library.