This code in the appDelegate makes my app behave strange
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window.windowLevel = UIWindowLevelStatusBar + 1;
return YES;
}
When hiding the keyboard from the function [myTextView resignFirstResponder] I’m getting my keyboard disappearing under the view, not sliding down as it should.
What is the best way to change this? Why does UIWindowLevelStatusBar + 1 mess up all the app structure?
EDIT:
What I’m trying to do is create a view on top of the statusBar. Is setting UIWindowLevelStatusBar + 1 in the appDelegate a wrong way to do this?
The keyboard also exists in a window (everything on the screen does) and that window has a level lower than your window’s.
Why are you setting your window level so high? If you tell us what you’re trying to accomplish, we may be able to suggest an alternate approach.