0
我將遊戲中心和開放佯攻都集成到我的應用程序中。當通知提示您已成功登錄時,打開的提示會與遊戲中心通知重疊。您如何將通知移至底部?我看到了文檔,但是我不能在我的生活中弄清楚如何讓它起作用。我看到enum ENotificationPosition
,它包括ENotificationPosition_BOTTOM
,但我應該在哪裏放置該代碼才能使其工作。OpenFeint來自底部的通知
我將遊戲中心和開放佯攻都集成到我的應用程序中。當通知提示您已成功登錄時,打開的提示會與遊戲中心通知重疊。您如何將通知移至底部?我看到了文檔,但是我不能在我的生活中弄清楚如何讓它起作用。我看到enum ENotificationPosition
,它包括ENotificationPosition_BOTTOM
,但我應該在哪裏放置該代碼才能使其工作。OpenFeint來自底部的通知
您需要做的就是在用來初始化OpenFeint的設置字典中指定此項。例如,
NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:UIInterfaceOrientationPortrait], OpenFeintSettingDashboardOrientation,
kShortAppName, OpenFeintSettingShortDisplayName,
[NSNumber numberWithBool:NO], OpenFeintSettingAlwaysAskForApprovalInDebug,
[NSNumber numberWithBool:YES], OpenFeintSettingGameCenterEnabled,
window, OpenFeintSettingPresentationWindow,
[NSNumber numberWithInt:ENotificationPosition.ENotificationPosition_BOTTOM_LEFT], OpenFeintSettingNotificationPosition,
nil];
[OpenFeint initializeWithProductKey:kOFProductKey
andSecret:kOFProductSecret
andDisplayName:kLongAppName
andSettings:settings
andDelegates:delegates];