问题解决了,在AppDelegate里把 
[self.window addSubview:self.logIn.view]; 
换成
[self.window setRootViewController:self.logIn];
就可以了,具体为什么这样,还不明白。

解决方案 »

  1.   

    你想适配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));
    }