即時通訊iPhone新手,我有一個登錄屏幕在Iphone中,當我運行時,它只顯示在半屏上,然後我改變了它在橫向模式下顯示的登錄屏幕的方向,但我希望當我啓動應用程序時在縱向模式下以橫向模式顯示並導航到另一個屏幕時縱向模式下的橫向模式,怎麼樣?請任何人幫我如何從iPhone中的肖像啓動橫向視圖?
- (BOOL)shouldAutorotateToInterfaceOrientation:()
{
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
if (orientation == UIDeviceOrientationLandscapeLeft ||
orientation == UIDeviceOrientationLandscapeRight)
{
return YES;
}
else if (orientation == UIDeviceOrientationPortrait ||orientation == UIDeviceOrientationPortraitUpsideDown)
{
return NO;
}
}
使用這些代碼不能在橫向模式下工作在縱向,但我改變了它的工作方向。
u能更具體。 – iamsult
嗨,我的問題是如何在縱向發佈橫向視圖?感謝您的回覆。 – sankar