swift - iOS:is that available to control or choose the way to receive message from network? -



swift - iOS:is that available to control or choose the way to receive message from network? -

for example, want forcefulness device receive info network 3g/4g service when wifi connected. developers have permission/api command network device use?is there document in apple developer library?

reachability class utilize this. search google.

reachability *reachability = [reachability reachabilityforinternetconnection]; [reachability startnotifier]; networkstatus status = [reachability currentreachabilitystatus]; if (status == reachableviawifi) { }

ios swift

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -