ios - Disable button when no internet connection -


How can I disable a button when there is no connection to a network / internet in iOS?

Look for Accessibility Code from Apple.

And use it like this:

  Richability * Accessibility Capabilities = [[Retouchability Possibility for Internet connection]]; [Reach notifier]; NetworkStatus Networks Stats = [Current Reachability Stands] [Accessibility]; BOOL connect = (network status == retinal viii = network status == recyclable wavadon);    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

javascript - What is an alternative to using getElementByClass for hiding multiple elements? -

c - Selecting a file randomly from a file system -