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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -