Close app when internet is not available

后端 未结 4 1031
北荒
北荒 2020-12-16 23:19

I want to close my app when an Internet connection is not available.

I check that, but how can I create an alert, and then close my app?

4条回答
  •  抹茶落季
    2020-12-16 23:36

    Your app should never close itself. iOS does not have the concept of quitting an app. You can inform the user that there is no internet connectivity and present a waiting screen or something else that shows them that your app is useless until the internet connection is available, but your app should continue running until the OS decides to shut you down.

提交回复
热议问题