2012-04-30 14 views
1

私はデバイス上で動作していないとシミュレータの作業で私の問題を発見した。 私はこの部分をコメントアウトすると、それが動作:シミュレータは動作しますが、デバイスは動作しませんか?

[OpenFeint initializeWithProductKey:@"MYKEY" andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]]; 

だから、それは次のようになります。

//[OpenFeint initializeWithProductKey:@"MYKEY" andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]]; 

私は上記のその部分をコメントアウトするとき、それは完璧に動作しますが、私はオープンフェイント]ボタンをクリックしたとき、私はこのエラーを取得する:

EXC_BAD_ACCESS. 

私は私のアプリの秘密のコードをオープンフェイントで私のアプリのキーと私のキーと私の秘密を交換してください。

私はオープンフェイントボタンをクリックすると、そのファイルとハイライトが緑色で、この部分に行く:任意の提案へ

2012-04-28 08:53:12.076 BalloonsPop[500:707] Application windows are expected to have a root view controller at the end of application launch Single stepping until exit from function +[OpenFeint(Private) launchDashboardWithDelegate:tabControllerName:andControllers:], which has no line number information. warning: Remote failure reply: E37

:私はへのステップたときに私のコンソールに続いて

[inv invoke]; EXC_BAD_ACCESS 

試してみる? ありがとう!

+0

ネットワーク接続が利用できないため、OpenFeintが動作を中止する可能性があるため、シミュレータ上で動作する可能性があります。 – giorashc

+0

私は多くのデバイスでこれを試してみましたが、すべてインターネットでアプリが読み込まれますが、私はボタンをクリックさせません。アプリケーションはopenfeintコードのため動作しません。 – Raoul

+0

これは、アプリケーションの代理人が別のコントローラ(ルートビューコントローラ)にビューを渡さないため、デフォルトのコントローラがないことを意味するためです。私は3つの20のナビゲータでこのエラーを抱えています(デフォルト動作を定義していません)。つまり、あなたのopenfeint呼び出しから返されたビューがないことを意味します。 – Panagiotis

答えて

0

私は、あなたがしなければわからないが、私はこのように宣言します:

OpenFeint *openfeint = [OpenFeint initializeWithProductKey:@"MYKEY" 
    andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings 
    andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]]; 

私はこのことができます願っています。

+0

私はこれを追加します:OpenFeint initializeWithProductKey:@ "MYKEY" andSecret:@ "MYSECRET" andDisplayName:@ "LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]];次に、私はエラーが発生します: 'OpenFeint *'型の変数をvoid型の値で初期化できません ' – Raoul

関連する問題