ゲーム センターとオープン フェイントの両方をアプリに統合しました。正常にログインしたことを知らせる通知が表示されると、オープン フェイントがゲーム センターの通知と重なって表示されます。代わりに通知を一番下に移動するにはどうすればよいですか。私はドキュメンテーションを見ましたが、それを機能させる方法を一生理解できません。とenum ENotificationPosition
含まれていますENotificationPosition_BOTTOM
が、そのコードを機能させるにはどこに置くべきですか。
1 に答える
1
あなたがする必要があるのは、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];
于 2011-10-01T03:17:48.030 に答える