iPhone环境问题
xcode:4.5.2 我想在iPad上创建一个应用程序 我将我的info.plist设置如下: 初始界面方向:横向(左主按钮) 当我启动我的应用程序时,定向设备具有横向模式,但我的视图不会旋转到此定向iPhone环境问题,iphone,ipad,ios6,uiinterfaceorientation,Iphone,Ipad,Ios6,Uiinterfaceorientation,xcode:4.5.2 我想在iPad上创建一个应用程序 我将我的info.plist设置如下: 初始界面方向:横向(左主按钮) 当我启动我的应用程序时,定向设备具有横向模式,但我的视图不会旋转到此定向 我不知道是什么,谁能帮我你是不是实施了以下这些方法 -(BOOL)shouldAutomaticallyForwardAppearanceMethods{ // This method is called to determine whether to
我不知道是什么,谁能帮我你是不是实施了以下这些方法
-(BOOL)shouldAutomaticallyForwardAppearanceMethods{
// This method is called to determine whether to
// automatically forward appearance-related containment
// callbacks to child view controllers.
return YES;
}
-(BOOL)shouldAutomaticallyForwardRotationMethods{
// This method is called to determine whether to
// automatically forward rotation-related containment
// callbacks to child view controllers.
return YES;
}
在ios6中,必须将此方法用于
vieworientation
-(BOOL)shouldAutorotate
{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationMaskAll;
}
您是否在横向模式下创建了xib?1。您是在实际设备或模拟器中运行的吗?2.你打扫建筑了吗?3.您在视图控制器中处理旋转了吗?是的,我已经完成了,我使用“情节提要”来创建