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
Post a Comment