ios 8如何在发布时制作全屏?

时间:2014-11-17 11:16:52

标签: xcode ios8 fullscreen

我在处理我的应用时发现了这个:

http://imgur.com/I0ciVTw&iZYUhWv#0< - 在发布时发生

http://imgur.com/I0ciVTw&iZYUhWv#1< - 在发布后几秒发生

我的问题是:如何在pic2上启动应用程序?

EDIT1: 添加代码:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{


if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
    // load the content controller object for Phone-based devices
    [[NSBundle mainBundle] loadNibNamed:@"Content_iPhone" owner:self options:nil];

}
else
{
    // load the content controller object for Pad-based devices
    [[NSBundle mainBundle] loadNibNamed:@"Content_iPad" owner:self options:nil];
    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7)
    {
         [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
        self.window.frame = UIScreen.mainScreen.bounds;
    }

}


self.window.frame = UIScreen.mainScreen.bounds;
[self.window makeKeyAndVisible];

   // Add registration for remote notifications
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

[[ProvisioningHandler sharedHandler] startHandling];

TLNAdManager *manager = [TLNAdManager sharedManager];
manager.advertisementURL = [NSURL URLWithString:AdvertisementURLString];
manager.rootViewController = self.window.rootViewController;
[manager update];

return YES;
}

谢谢!

我修好了: 转动的窗口隐藏起来并且有效。

0 个答案:

没有答案
相关问题