2010-06-06 80 views
0

以下代碼有效,但我的方向是風景,並且視圖以縱向方式顯示和顯示。有任何想法嗎?iPad/iPhone開發:displayViewController在風景方向渲染肖像

-(void)displayFirstScreen 
{ 
    UIViewController *displayViewController=[[UIViewController alloc] init]; 
    displayViewController.view = displaySplash; 
    [self presentModalViewController:displayViewController animated:NO]; 
    [self performSelector:@selector(removeScreen) withObject:nil afterDelay:2.0]; 

    [displayViewController release]; 
} 

-(void)removeScreen 
{ 
    [[self modalViewController] dismissModalViewControllerAnimated:YES]; 
} 

在此先感謝!

回答