게임 시작시 다음 환영 알림을 제거하려고했습니다.Nextpeer 환영 배너 제거 : 위임 방법이 실행되지 않음
여기에 큰 작업 AppDelegate.m
- (void)initializeNextpeer
{
NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
// This game has no retina support - therefore we have to let the platform know
[NSNumber numberWithBool:TRUE], NextpeerSettingGameSupportsRetina,
// Support orientation change for the dashboard notifications
[NSNumber numberWithBool:FALSE], 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_BOTTOM], NextpeerSettingNotificationPosition,
nil];
[Nextpeer initializeWithProductKey:@"HERE ADDED GAME KEY" andSettings:settings andDelegates:
[NPDelegatesContainer containerWithNextpeerDelegate:self notificationDelegate:[NPCocosNotifications sharedManager] tournamentDelegate:self]];
}
- (BOOL)nextpeerShouldShowWelcomeBanner {
return NO; // Do not Show banner
}
Nextpeer에서
@interface AppDelegate : NSObject <UIApplicationDelegate,NextpeerDelegate,NPTournamentDelegate,NPNotificationDelegate,..>
// .H
내 코드입니다. 이 기능 만 실행되지 않습니다. 뭐가 문제 야?
에 추가됩니다 당신을했다 nextpeer의 위임자로 appdelegate를 지정/등록 하시겠습니까? – LearnCocos2D
@ LearnCocos2D 예 nextpeerDashboardWillAppear 대리자 호출이 시작되었지만 nextpeerShouldShowWelcomeBanner가 아닌 것을 추가했습니다. – Guru