help with boolean value for wireless connection

Discussion in 'iOS Programming' started by creganbrendan, Nov 15, 2010.

  1. creganbrendan macrumors newbie

    Joined:
    Nov 15, 2010
    #1
    hi all,

    have been trying to figure out how to create a boolean function that could control a switch that would say wether or not theres a wireless internet connection to a specific home network.

    just wondering could anyone help me out!

    Thanks

    Brendan
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    I think you will have to ask a specific question and/or post code and/or detailed explanation of what's not working.
     
  3. creganbrendan thread starter macrumors newbie

    Joined:
    Nov 15, 2010
    #3
    well i just have a UISwitch in my interface and want a BOOL to control it, the BOOL in question would be wether or not there is a wifi connection.

    I havent been able to dig up any information on coding for wifi connections.

    Any help would be seriously appreciated
    Thanks

    Brendan
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Look at the Apple reachability sample for checking for active connections. As for "BOOL to control it" that just isn't how things work. It is up to you to write your controller layer to keep the interface layer synced with the model layer.
     
  5. creganbrendan thread starter macrumors newbie

    Joined:
    Nov 15, 2010

Share This Page