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 9 beta 4 problem (iPad) #95

Open wmenge opened 9 years ago

wmenge commented 9 years ago

When testing the overlay in iOS 9 on iPad, the overlay takes over the entire screen and/or is positioned incorrectly. I have created a sample project with just the sample code:

-(IBAction)showStatus:(id)sender {

    MTStatusBarOverlay *overlay = [MTStatusBarOverlay sharedInstance];
    overlay.animation = MTStatusBarOverlayAnimationFallDown;  // MTStatusBarOverlayAnimationShrink
    overlay.detailViewMode = MTDetailViewModeHistory;         // enable automatic history-tracking and show in detail-view
    //overlay.delegate = self;
    overlay.progress = 0.0;
    [overlay postMessage:@"Following @myell0w on Twitter…"];
    overlay.progress = 0.1;
    // ...
    [overlay postMessage:@"Following myell0w on Github…" animated:NO];
    overlay.progress = 0.5;
    // ...
    [overlay postImmediateFinishMessage:@"Following was a good idea!" duration:2.0 animated:YES];
    overlay.progress = 1.0;

}
nihilenz commented 9 years ago

Hello, please try this change, it helps in my case: https://github.com/nihilenz/MTStatusBarOverlay/commit/565488e26fdca4b85b594ec6616de4b8fcc8bed1

pilot34 commented 9 years ago

@nihilenz it helped, thx!

Usipov commented 9 years ago

@nihilenz Also helped Thanx!

Usipov commented 9 years ago

@wmenge Please close the issue

timrossinfo commented 9 years ago

@nihilenz This fix works great if the app is launched in portrait orientation, but appears to break if the app is launched in landscape.

skumawat commented 8 years ago

Hello, When we display message on status bar using MTStatusbaroverlay class then message doesn't display properly in portrait & landscape mode on iOS 9 devices. Its working fine on iOS 8 or lower devices.

skumawat commented 8 years ago

Any update regarding orientation issue on iPad IOS 9?