質問編集履歴
4
暫定対応を記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,3 +19,13 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
(SecondViewControllerにも明示的にバックグラウンド処理の記載が必要かとも思い始めていますが、SecondViewControllerには具体的な処理を一切記載しない初期段階でもFirstViewControllerに記載したGPSのバックグラウンド処理が停止してしまい、対処が分かりません。。。)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
(暫定対応)
|
28
|
+
|
29
|
+
アプリをシングルViewControllerで作り直し、一旦この問題を回避しました。
|
30
|
+
|
31
|
+
とはいえ、理想は2つのViewControllerで機能を分けたいので、回答をお持ちの方は引き続きお知恵を拝借いただけると幸いです。
|
3
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
SecondViewController
|
1
|
+
SecondViewController遷移時に、GPSバックグラウンド処理を継続したい
|
test
CHANGED
File without changes
|
2
説明の追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
SecondViewControllerに遷移した際
|
1
|
+
SecondViewControllerに遷移した際、GPSバックグラウンド処理を継続する方法を教えてください
|
test
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
![イメージ説明](20bc580f4e8c6ba0f0a9ca2884929f99.png)
|
1
|
+
![イメージ説明](20bc580f4e8c6ba0f0a9ca2884929f99.png)
|
2
|
+
|
3
|
+
swiftでバイクラリーガイド用アプリを制作しています。
|
2
4
|
|
3
5
|
アプリはFirstViewController(方位、移動距離), SecondViewController(地図上に移動の軌跡を表示)の2つの画面から構成されています。
|
4
6
|
|
@@ -8,8 +10,12 @@
|
|
8
10
|
|
9
11
|
FirstViewControllerでは既に方位、移動距離が実装できており、バックグラウンドでも動作しています。
|
10
12
|
|
11
|
-
しかし、SecondViewControllerにタブを切り替えた瞬間にバックグラウンドでの動作が止まってしまいます。
|
13
|
+
しかし、SecondViewController(内容は現時点で空)にタブを切り替えた瞬間にバックグラウンドでの動作が止まってしまいます。
|
12
14
|
|
13
15
|
|
14
16
|
|
15
17
|
SecondViewControllerに切り替えてもFirstViewControllerで実装したGPSがバックグラウンドで動作するにはどのような方法がありますでしょうか?よろしくお願い致します。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
(SecondViewControllerにも明示的にバックグラウンド処理の記載が必要かとも思い始めていますが、SecondViewControllerには具体的な処理を一切記載しない初期段階でもFirstViewControllerに記載したGPSのバックグラウンド処理が停止してしまい、対処が分かりません。。。)
|
1
イメージ説明の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
swiftでバイク
|
1
|
+
![イメージ説明](20bc580f4e8c6ba0f0a9ca2884929f99.png)swiftでバイクラリーガイド用アプリを制作しています。
|
2
2
|
|
3
3
|
アプリはFirstViewController(方位、移動距離), SecondViewController(地図上に移動の軌跡を表示)の2つの画面から構成されています。
|
4
4
|
|