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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 02-08-2010, 08:18 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Default Button Interaction; Having messages switch off when buttons are pressed?

Is there a way to have one of two messages display when a button is pressed, then with each subsequent button press, the two messages switch off?

For example;

Button 1 is pressed; randomly picks message 1.

Button 2 is pressed; message 2 displayed.

Button 3 is pressed; message 1 displayed.

Is there a way to do this, and apply it so that when ANY button is pressed, it starts this same cycle? Whether it's button 1, or button 5?
Noise is offline   Reply With Quote
Old 02-08-2010, 08:55 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,091
Default

Route all of the button actions through one method. Respond based on the tag of each one, in the order that you wish.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick 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



» Advertisements
» Stats
Members: 158,485
Threads: 89,094
Posts: 380,133
Top Poster: BrianSlick (7,091)
Welcome to our newest member, janice23
Powered by vBadvanced CMPS v3.1.0

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