I have an UIActionSheet and I am specifying the cancel button however it does not dismiss when its tapped?
UIActionSheet *actionSheet = [[[UIActionSheet alloc]initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Target Complete" otherButtonTitles:nil] autorelease];
[actionSheet showInView:self.view];
According to the documentation I don't need any code and even when I try and implement the didCancel delegate method its never called?
use
instead of
this is working fine.. :-)
Try this
UIActionSheet cancel button strange behaviour
write simplite code
this work fine
You need to display from a taskbar or a toolbar on iPhone as it clips some of the controls if you use display in view.
This Will do the trick
instead of
I found the answer here.
https://stackoverflow.com/a/1530259/1803218