1

マルチプレイヤー ゲームに を使用Nextpeerしており、 の縦向きを設定したいと考えています。私はそのためにこのコードを使用しています:CocosNextpeerSettingInitialDashboardOrientation

 NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
                              [NSNumber numberWithBool:FALSE], NextpeerSettingSupportsDashboardRotation,
                              [NSNumber numberWithInt:NPNotificationPosition_BOTTOM], NextpeerSettingNotificationPosition,
                              [NSNumber numberWithBool:FALSE], NextpeerSettingInitialDashboardOrientation,
                              nil];

[Nextpeer initializeWithProductKey:@"ID" andSettings:settings andDelegates:
 [NPDelegatesContainer containerWithNextpeerDelegate:self notificationDelegate:nil tournamentDelegate:self currencyDelegate:nil]];

しかし、この警告が表示され、向きが に設定されていませんportrait。に設定していLandscapeます。私のデフォルトの向きは ですportrait

Nextpeer warning: The desired orientation (1) isn't supported by the currently integrated Nextpeer's resource bundle.
  • NextpeerSettingSupportsDashboardRotationを変更するには?

  • この警告を解決するには?

4

1 に答える 1

0

Nextpeerには、プロジェクトの方向性とユニバーサル サポートに基づいて、さまざまなリソース バンドルがあります。対応するリソース バンドルを確実に統合する必要があります。たとえば、ランドスケープ ユニバーサルの場合はNPResources_iPad_iPhone_Landscape、iOS 統合ガイドの指示に従って、プロジェクトにバンドルを設定する必要があります。

値を TRUE に変更NextpeerSettingSupportsDashboardRotationするには、オブジェクトの値を次のように変更します。

 NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
                          [NSNumber numberWithBool:TRUE], NextpeerSettingSupportsDashboardRotation,
                          [NSNumber numberWithInt:NPNotificationPosition_BOTTOM], NextpeerSettingNotificationPosition,
                          [NSNumber numberWithBool:FALSE], NextpeerSettingInitialDashboardOrientation,
                          nil];
于 2014-12-16T17:37:28.220 に答える