When the terminal is not connected to the network, a dialog likePhoto 1is displayed.What you know
[iOS] Detecting network connection status
Isn't FBNetworkReachability better than Reachability?
As you can see from theURLabove,ReachabilityandFBNetworkReachabilitycan be used.What you do n’t understand
The aboveURLis old and I don't know how to embed it in the application and write the code in the current development environment.
(I want to check the network status when starting the app)
Answer # 1
If you look into it, the following page will be helpful.
But it may be deprecated by Apple.
Because it's also the "misunderstanding of Reachability" on the following page,
There are times when you try to connect and use the result.
It seems that you should not expect a connection.
You should get the result of reachability and display it with alert.
Answer # 2
I will close it once.
- ios - i want to detect rotation while the swift screen orientation is locked
- Sample code for iOS to detect network status in real time
- Using C/C ++ to detect the status of network interfaces under Linux
- ios - swift completionhandler how to make your own closure
- ios - [swift] when i made a view controller in xcode 11 without using a storyboard, it became the upper half view
- ios - swift: i want to add a shadow to the frame of textview
- ios - [swiftui, swift] the array of the type originally defined in userdefaults cannot be saved
- ios - swift: when i hit the button repeatedly, i want to display the text display time from the last time i press it
- ios - about swift learning method
- ios - [swift] error when cropping uiimage
- ios - swift return value cannot be returned as expected
- ios - i want to make more than 100 patterns with swift and conditional branching
- ios - [swift] even if uivisualeffectview is added to uiimageview, subsubview does not take effect
- ios - uiimageview animation in swift
- ios - swift when you do not want to execute the superclass method in the subclass
- ios - [swift] how to catch event when request is not sent in wkwebview
- ios - error in swift
- ios - about swift (business related)
- ios - i want to detect app reselection after unlocking swift iphone
- swift, ios app i want to control the behavior of a round uibutton i want to install a round button
- ios - core bluetooth data exchange
- about symbolicate (restore) of crash log due to rejection when applying for swift iosapp
- ios - it is about line breaks when using uitextview wrapped in swift ui
- swift : How to transition so that the NavigationBar is not shared before and after the screen transition?
- ios : Xcode Git creates copies of files
- ios - i want to convert string to date type in swift4
- objective-c - about phpickerviewcontroller for ios14
- i want to change the screen display for each model when creating an ios app with xcode
- ios - i want to display the initial text value of uitextfield in swiftui
- ios - i want to limit the number of characters for multiple uitextviews