How can I rotate the keyboard in iOS6.0?
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 to share