将openfeint集成到cocos2d ipad布局中

将openfeint集成到cocos2d ipad布局中,ipad,layout,cocos2d-iphone,openfeint,Ipad,Layout,Cocos2d Iphone,Openfeint,我成功地将openfeint集成到iPhone/iPod Touch上的应用程序中。但iPad的布局被打破了。 我从openfeint的示例应用程序复制粘贴了代码 - (void) performOpenfeintInitLogic { UIViewController * rootVC = [UIApplication sharedApplication].keyWindow.rootViewController; NSDictionary* settings = [NSDic

我成功地将openfeint集成到iPhone/iPod Touch上的应用程序中。但iPad的布局被打破了。 我从openfeint的示例应用程序复制粘贴了代码

- (void) performOpenfeintInitLogic
{
    UIViewController * rootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
    NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
                              [NSNumber numberWithInt:UIInterfaceOrientationPortrait], OpenFeintSettingDashboardOrientation,
                              @"asdasdasdas", OpenFeintSettingShortDisplayName,
                              [NSNumber numberWithBool:YES], OpenFeintSettingEnablePushNotifications,
                              [NSNumber numberWithBool:NO], OpenFeintSettingDisableUserGeneratedContent,
                              [NSNumber numberWithBool:NO], OpenFeintSettingAlwaysAskForApprovalInDebug,
#ifdef DEBUG
                              [NSNumber numberWithInt:OFDevelopmentMode_DEVELOPMENT], OpenFeintSettingDevelopmentMode,
#else
                              [NSNumber numberWithInt:OFDevelopmentMode_RELEASE], OpenFeintSettingDevelopmentMode,
#endif
                              window, OpenFeintSettingPresentationWindow,
#ifdef DEBUG
                              [NSNumber numberWithInt:OFDevelopmentMode_DEVELOPMENT], OpenFeintSettingDevelopmentMode,
#else
                              [NSNumber numberWithInt:OFDevelopmentMode_RELEASE], OpenFeintSettingDevelopmentMode,
#endif
                              nil
                              ];    
    [OpenFeint initializeWithProductKey:@"hgghf"
                              andSecret:@"nbvnb"
                         andDisplayName:@"ncvnv"
                            andSettings:settings
                           andDelegates:nil];

    [OpenFeint launchDashboard];

    OFGameFeedView * gameFeed = [OFGameFeedView gameFeedView];
    [rootVC.view addSubview:gameFeed];
}
这里是破损的布局

它现在使用此配置运行。这个错误是错误的。这是正确的一个:OFResources\u Universal.bundle

配置现在是:

UIViewController * rootVC = [UIApplication sharedApplication].keyWindow.window.rootViewController;
    NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
                              [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight], OpenFeintSettingDashboardOrientation,
                              @"asdasdads", OpenFeintSettingShortDisplayName,
                              [NSNumber numberWithBool:YES], OpenFeintSettingGameCenterEnabled,
                              [NSNumber numberWithBool:YES], OpenFeintSettingEnablePushNotifications,
                              [NSNumber numberWithBool:NO], OpenFeintSettingDisableUserGeneratedContent,
                              [NSNumber numberWithBool:NO], OpenFeintSettingAlwaysAskForApprovalInDebug,
#ifdef DEBUG
                              [NSNumber numberWithInt:OFDevelopmentMode_DEVELOPMENT], OpenFeintSettingDevelopmentMode,
#else
                              [NSNumber numberWithInt:OFDevelopmentMode_RELEASE], OpenFeintSettingDevelopmentMode,
#endif
                              rootVC, OpenFeintSettingPresentationWindow,
#ifdef DEBUG
                              [NSNumber numberWithInt:OFDevelopmentMode_DEVELOPMENT], OpenFeintSettingDevelopmentMode,
#else
                              [NSNumber numberWithInt:OFDevelopmentMode_RELEASE], OpenFeintSettingDevelopmentMode,
#endif
                              nil
                              ];    
    [OpenFeint initializeWithProductKey:@"asdasdas"
                              andSecret:@"asdasdasd"
                         andDisplayName:@"asdasdsad"
                            andSettings:settings
                           andDelegates:nil];