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

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -