问题解决了,在AppDelegate里把
[self.window addSubview:self.logIn.view];
换成
[self.window setRootViewController:self.logIn];
就可以了,具体为什么这样,还不明白。
[self.window addSubview:self.logIn.view];
换成
[self.window setRootViewController:self.logIn];
就可以了,具体为什么这样,还不明白。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return ((interfaceOrientation ==UIDeviceOrientationLandscapeLeft)||(interfaceOrientation ==UIDeviceOrientationLandscapeRight));
}