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

View Single Post
Old 02-24-2011, 09:10 AM   #17 (permalink)
simontheu
Registered Member
 
Join Date: Feb 2011
Location: Milton Keynes, UK
Posts: 10
simontheu is on a distinguished road
Default

Quote:
Originally Posted by Desdichado View Post
I had this problem recently. I ended up using tags:

Code:
  alert1.tag=1;
  alert2.tag=2;
and then in the delegate method:

Code:
  if (actionSheet.tag==1) {

   //check buttonIndex value and do something
  }
  else if (actionSheet.tag==2) {
   //check buttonIndex value and do something different
  }
Tags seem like a bit of a bodge, is there a more correct way?
simontheu is offline   Reply With Quote
 

» Advertisements
» Online Users: 403
12 members and 391 guests
7twenty7, alexeir, antonwilliams, Arty Tales, DaveDee, erdinc27, eski, Lily.P, networ, roof44, ryantcb, Sami Gh
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,594
Threads: 94,084
Posts: 402,779
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kopmlop
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:12 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.