link button to a web page

Discussion in 'iOS Programming' started by hoosierfan24, Jan 27, 2010.

  1. hoosierfan24 macrumors member

    Joined:
    Jul 31, 2009
    #1
    Hey Guys I just wanted to know how i would link a UIbutton to a web page via safari. I have an IBaction for it and just dont know what to code to tell it to go to that web page, in the iphones safari browser
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Look at the openURL: method in the UIApplication class.
     

Share This Page