我有一个肖像视图(隐藏的状态栏),但我把它打开了。然后键盘显示如下:

我想让键盘转动并全屏显示。请帮帮我。提前谢谢。
发布于 2013-01-31 21:30:32
我看过评论了。你不能让屏幕变成这样的风景。IOS6有一些新的东西,“应用程序的appDelegate总是以肖像开始”,你应该使用iOS6自动旋转!这应该在appDelegate中:
- (NSUInteger)application:(UIApplication*)application
supportedInterfaceOrientationsForWindow:(UIWindow*)window
{
return (UIInterfaceOrientationMaskAll);
}在视图控制器中:
-(BOOL)shouldAutorotate
{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}在supportedInterfaceOrientations中,您可以将其设置为仅横向
https://stackoverflow.com/questions/14623572
复制相似问题