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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -