How can I rotate the keyboard in iOS6.0?

I have a portrait view (the status bar is hidden), but I rotated it. Then the keyboard shows this:

enter image description here

I want the keyboard to rotate and full screen. Please help me. Thanks in advance.

+3


source to share


1 answer


I've seen the comments. You cannot make the screen the same as this one. IOS 6 has something new, "appDelegate always starts as a portrait" You must use IOS 6 autostart! This should be in appDelegate:

  - (NSUInteger)application:(UIApplication*)application
supportedInterfaceOrientationsForWindow:(UIWindow*)window
{

    return (UIInterfaceOrientationMaskAll);
}

      

In your view, the controller:



-(BOOL)shouldAutorotate
{
    return YES;
}

-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

      

in supported InterfaceOrientations you can only set it to landscape

0


source







All Articles