【问题标题】:iPad/iPhone Dev: displayViewController Is Rendering Portrait in Landscape OrientationiPad/iPhone 开发:displayViewController 正在横向渲染纵向
【发布时间】:2010-06-06 22:19:06
【问题描述】:

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

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

提前致谢!

【问题讨论】:

    标签: iphone ipad orientation modalviewcontroller


    【解决方案1】:

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

    http://aralbalkan.com/2334

    【讨论】:

      猜你喜欢
      • 2011-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-14
      • 2012-12-04
      • 1970-01-01
      相关资源
      最近更新 更多