link button to a web page

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

  1. hoosierfan24 macrumors member

    Jul 31, 2009
    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


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

Share This Page