3
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

iOSで機内モードを検知する

Posted at

機内モードを検知する方法

  • Wi-Fiに繋がっている状態から機内モードになった時
  • 機内モードでアプリを起動した時

これらを検知するにはInfo.plistに
UIRequiresPersistentWiFi を付け足して、YES に設定しておきます。
(Application uses Wi-Fi と変換されます。)

Screen Shot 2016-11-27 at 22.37.18.png
3
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?