Skip to content

Commit

Permalink
Merge pull request mapbox#16 from correia/master
Browse files Browse the repository at this point in the history
Updated implementation of MBFingerTipOverlayWindow to match the prevailing coding conventions.
  • Loading branch information
incanus committed Apr 15, 2015
2 parents 7f0698e + 036d4b1 commit 2240707
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions MBFingerTipWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,13 @@ @implementation MBFingerTipView
@implementation MBFingerTipOverlayWindow

// UIKit tries to get the rootViewController from the overlay window.
// Instead, try to find the rootViewController on some other
// application window.
// Fixes problems with status bar hiding, because it considers the
// overlay window a candidate for controlling the status bar.
- (UIViewController *)rootViewController {
for (UIWindow *window in [[UIApplication sharedApplication] windows]) {
// Instead, try to find the rootViewController on some other application window.
// Fixes problems with status bar hiding, because it considers the overlay window a candidate for controlling the status bar.

- (UIViewController *)rootViewController
{
for (UIWindow *window in [[UIApplication sharedApplication] windows])
{
if (self == window)
continue;

Expand Down

0 comments on commit 2240707

Please sign in to comment.