I'm using Nextpeer
in Cocos
for multi-player game, and want to set portrait orientation for NextpeerSettingInitialDashboardOrientation
. I'm using this code for that :
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]];
But i'm getting this warning, and my orientation is not set to portrait
. It's set it to Landscape
. My default orientation is portrait
.
Nextpeer warning: The desired orientation (1) isn't supported by the currently integrated Nextpeer's resource bundle.
How to change NextpeerSettingSupportsDashboardRotation ?
How to resolve this warning ?