iPad / iPhone Dev:displayViewController是以横向方向渲染肖像

时间:2010-06-06 22:19:07

标签: iphone ipad orientation modalviewcontroller

以下代码有效但我的方向是横向,视图以纵向进行。有什么想法吗?

-(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];
}

提前致谢!

1 个答案:

答案 0 :(得分:0)

我认为这可能会解决您的问题

http://aralbalkan.com/2334