iphone - Several Buttons using the same UIActionSheetDelegate methods -
i have view contains 5 buttons. when each button tapped uiactionsheetdelegate method called: -(void)actionsheet:(uiactionsheet *)actionsheet clickedbuttonatindex:(nsinteger)buttonindex
i have each buttons tag property set 0-4. i'm having hard time delegate method finding out button.tag sent. sender.tag information passed along action sheets delegate methods?
for delegate method use case statement find out button pressed on action sheet , guess i'll use if statement determine sender.tag == 0 etc. i'm little confused @ point , need little assistance if @ possible.
as in advance!
t
you use buttonindex
passed actionsheet:clickedbuttonatindex:
determine button pressed. buttons indexed starting @ 0.
Comments
Post a Comment