我正在使用NextpeerinCocos进行多人游戏,并且想为NextpeerSettingInitialDashboardOrientation. 我为此使用此代码:
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?
如何解决此警告?