您可以使用 nWPathMonitor ,如下所示- 需要 iOS 12 import Network let monitor = NWPathMonitor() monitor.start(queue: DispatchQueue(label: ...
確定! 回上一頁