0

I used Nextpeer in portrait game and works fine. Used same code in landscape game but Nextpeer dashboard coming still in portrait mode. How to change Nextpeer dashboard orientation to landscape?

Here is my Nextpeer initialisation code:

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

enter image description here

How to fix this problem?

4

1 に答える 1

5

NExtPeer が提供する Potarit バンドルを別のレイアウトに誤って使用したと思われます。Landscape バンドルをアプリにドラッグ アンド ドロップしてください。

詳細については、これを確認し、ステップ 3 を参照してください。
次のピア ドキュメント

于 2013-03-29T08:46:34.970 に答える