iphone - how to dismiss action sheet with a custom button -


i created 2 buttons , 1 date picker on action sheet.on clicking done button want dismiss action sheet.can please code dismissing action sheet.

i'm using code giving action done button:

[donebutton addtarget:self action:@selector(dismissactionsheet:) forcontrolevents:uicontroleventvaluechanged]; 

in dismissactionsheet method write

[asheet dismisswithclickedbuttonindex:0 animated:yes]; 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -