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

MakeKeyWindow #64

Closed adamdahan closed 11 years ago

adamdahan commented 11 years ago

This status overlay is a key thief.

In order to gain window access one needs to override

And put a window property with this getter in the app delegate.

Add this to your library so its actually usable.

Your welcome for the fix.

Adam.

myell0w commented 11 years ago

Thanks, but no thanks.

DrBeak1 commented 11 years ago

Why was this closed - did you find another solution? This is exactly the issue I'm still having.

adamdahan commented 11 years ago

@DrBeak1 You can use my comment above to solve the issue for you :) We used it in our app. But to be honest we ended up ditching this library and rolled out our own. So the above comment became obsolete for us but it will work for you.

DrBeak1 commented 11 years ago

thanks @adamdahan --- at this time I have no use whatsoever for the user to interact with the overlay, so wouldn't adding this to MTStatusBarOverlay work fine:

-(BOOL)isKeyWindow
{
    return NO;
}

... ????

adamdahan commented 11 years ago

@DrBeak1 Yup that would work fine :)