i have a portrait view (status bar hidden), but i turned it. Then keyboard shows this:
i want keyboard to turn and fullscreen. Please help me. Thanks in advance.
I have seen the comments. You can't make the screen be landscape like this. IOS 6 has something new, "the app's appDelegate always start as portrait" You should use the IOS 6 autorotate! This should be in the appDelegate:
- (NSUInteger)application:(UIApplication*)application
supportedInterfaceOrientationsForWindow:(UIWindow*)window
{
return (UIInterfaceOrientationMaskAll);
}
In your view controller:
-(BOOL)shouldAutorotate
{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
in the supportedInterfaceOrientations you can set it to landscape only
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.