Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-13-2008, 01:13 PM   #1 (permalink)
New Member
 
Join Date: May 2008
Posts: 10
jashsayani is an unknown quantity at this point
Default Action Handling

Hi,

I know How to make a window, like it to XCode and Run it. Also how to add an icon to the app.
Now, I want to know how to add Action Statements.

For Example I have a Button and when pressed, I want to Display a Popup with a OK button.

How do I do such stuff. Thanks.
jashsayani is offline   Reply With Quote
Old 06-13-2008, 10:04 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
scottiphone is on a distinguished road
Default Re: Action Handling

You need to write some code (probably in the app or viewcontroller) to do an action such as displaying a alert. Add the button and set the target to the object with the action code. Set it to execute the action. You can link and create some of this in interface builder.

Your best bet is to review some of the sample code. UICatalog shows buttons and alerts.
scottiphone is offline   Reply With Quote
Old 06-15-2008, 06:30 AM   #3 (permalink)
New Member
 
Join Date: May 2008
Posts: 10
jashsayani is an unknown quantity at this point
Default Re: Action Handling

Thanks a lot!

Problem Solved now.
jashsayani is offline   Reply With Quote
Old 06-15-2008, 08:01 AM   #4 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 93
BuschyBoy is an unknown quantity at this point
Default Re: Action Handling

If you mean icon the way I think you do you can copy an image (I've always used png's but others may work just as well) into your resources and edit your info.plist. Change Icon file to whatever your image is, such as:
PizzaAppIcon.png
or
MyIcon.png
BuschyBoy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception Handling....in Xcode/Obj-C WayneDavidDaley iPhone SDK Development 4 02-04-2009 02:22 PM
UIButton action no more working with iPhone SDK 2.0 lightforce iPhone SDK Development 2 07-13-2008 12:47 AM


» Advertisements
» Online Users: 335
3 members and 332 guests
guusleijsten, Kryckter, LEARN2MAKE
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:47 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0