当前位置:编程学习 > wap >>

iPad的界面怎么是横过来的呢

创建的项目是只有横屏的,登陆界面也是横屏下开发的。怎么显示的时候会横过来呢
  --------------------编程问答-------------------- 自己顶下,,,, --------------------编程问答-------------------- 除 --------------------编程问答-------------------- --------------------编程问答-------------------- 问题解决了,在AppDelegate里把 
[self.window addSubview:self.logIn.view]; 
换成
[self.window setRootViewController:self.logIn];
就可以了,具体为什么这样,还不明白。 --------------------编程问答-------------------- 刚好需要 --------------------编程问答-------------------- 你想适配ios几以上的,如果只是ios6以上的只要在General->Deployment Info->Device Orientation 中只选择Landscape Left和Landscape Right。如果想适配ios5则需要在每个页面设置
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
  
    return ((interfaceOrientation ==UIDeviceOrientationLandscapeLeft)||(interfaceOrientation ==UIDeviceOrientationLandscapeRight));
} --------------------编程问答-------------------- 帮忙顶下!
补充:移动开发 ,  iPhone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,