Buttons in iPhone

Discussion in 'iOS Programming' started by heziflash, Nov 17, 2011.

  1. heziflash, Nov 17, 2011
    Last edited: Nov 17, 2011

    heziflash macrumors newbie

    Nov 16, 2011
    Hi guys
    I'm new in iphone programming. I'm trying to build application with button.
    i put all the code needed. i open the xib file in order to work with the IB. I drag a button from a library and then i tried to work with Connection Inspector. he showed me the events and i was trying to select "touch up inside" but i could not succeeded.
    my xcode Version 3.2.1 and my mac os is 10.6.8
    can anyone help?
  2. ArtOfWarfare macrumors G3


    Nov 26, 2007
    Click and drag from the circle next to Touch Up Inside. A blue line should be running from your cursor to the circle. Drag this blue line to the file's owner, on the left side of the screen. Then select the action you want to happen.

    ... Although you're using Xcode 3... I can't remember what the interface exactly looked like for that... Can't you upgrade to Xcode 4? It's on the Mac App Store for $5.
  3. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    That approach sounds good for Xcode 3 as well, assuming you've already set up an IBAction in the file's owner. In Xcode 4 you are able to set this up "on the fly", as it were.

Share This Page