3

バックグラウンド/フォアグラウンド タスクに関する他の投稿でコメントを読んだ後、アプリがバックグラウンドからフォアグラウンドに戻ったときに返される値を表示する必要があります。問題は、アプリをバックグラウンドに送信すると (iPhone のホーム ボタンをクリックするか、XCODE で [Simulate Background Fetch] をクリックして [Debug])、xcode が実行を停止する (ログを含む) ことです。そのため、NSLog メッセージを表示し続けることはできません。

よく説明したかどうかわかりません。

4

3 に答える 3

1

Mine does not stop to debug, it still continues when it goes to background(clicking home button) and comes to foreground when clicked in app icon. I think this should be default setting but if its not happening in yours then try this

Steps

  1. Select your project's target

  2. Select info tab

  3. Under the custom iOS target properties, if you can see the key named "Application does not run in background" then set is value to NO otherwise do Step 4.

  4. ADD a key= "Application does not run in background", type= "bolean", value= "NO"

  5. Run your project

enter image description here

于 2015-06-30T11:37:26.927 に答える
0

デバッグコンソールで試すことができます。

ここに画像の説明を入力

于 2015-06-30T10:34:01.097 に答える
-2

アプリケーションの設定を確認します。 ここに画像の説明を入力

于 2015-06-30T10:43:32.037 に答える