iOS/iPhone Reachability - How to only check when internet is lost/not reachable using Reachability.m/.h

前端 未结 7 464
一生所求
一生所求 2021-02-01 09:59

Currently i am using the class by apple reachability.m/.h and it works, except it notifies me for any change, where as i would like to only notify the user if the network is not

7条回答
  •  既然无缘
    2021-02-01 10:43

    If you replace the www.hostname.com with just an IP address, it will only alert once instead of multiple times.

提交回复
热议问题