Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリの実行中にアイドル状態のモードデバイスを無効にする方法を知っている人はいますか?Webサービスを使用してiOSアプリを作成しましたが、スクリーンセーバーが起動すると、同期が低下します。
ありがとう
「スクリーンセーバー」とは、画面をオフにするデバイスのアイドルタイマーを無効にすることを意味すると仮定すると、次の単純な行を使用できます。
[UIApplication sharedApplication].idleTimerDisabled = YES;