0

我在肖像游戏中使用了 Nextpeer,效果很好。在横向游戏中使用相同的代码,但 Nextpeer 仪表板仍处于纵向模式。如何将 Nextpeer 仪表板方向更改为横向?

这是我的 Nextpeer 初始化代码:

-(void)initializeNextpeer:(NSDictionary *)launchOptions
{
    if([self internetConnected])
    {
        BOOL isRetina = (IS_IPAD) ? FALSE : TRUE ;

        NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:

                                  // This game has no retina support - therefore we have to let the platform know
                                  [NSNumber numberWithBool:isRetina], NextpeerSettingGameSupportsRetina,
                                  // Support orientation change for the dashboard notifications
                                  [NSNumber numberWithBool:TRUE], NextpeerSettingSupportsDashboardRotation,
                                  // Support orientation change for the in game notifications
                                  [NSNumber numberWithBool:TRUE], NextpeerSettingObserveNotificationOrientationChange,
                                  //  Place the in game notifications on the bottom screen (so the current score will be visible)
                                  [NSNumber numberWithInt:NPNotificationPosition_TOP], NextpeerSettingNotificationPosition,
                                  nil];

        [Nextpeer initializeWithProductKey:@"HERE_USED_NEXTPEER_KEY"
                               andSettings:settings
                              andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self]];

        // Handle any notifications the game was launched with
        [Nextpeer handleLaunchOptions:launchOptions];
    }
}

在此处输入图像描述

如何解决这个问题?

4

1 回答 1

5

我认为您错误地将 NExtPeer 提供的 Potarit 包用于不同的布局。请将 Landscape 包拖放到您的应用程序中。

有关更多信息,请查看此内容并查看第 3 步
Next Peer Docs

于 2013-03-29T08:46:34.970 回答