iOS Buttons in iPhone

heziflash

macrumors newbie
Original poster
Nov 16, 2011
1
0
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?
 
Last edited:

ArtOfWarfare

macrumors G3
Nov 26, 2007
8,707
4,354
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.
 

dejo

Moderator
Staff member
Sep 2, 2004
15,981
450
The Centennial State
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...
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.