I am trying to show cancel button in UIActionSheet but it’s not showing, is that an acceptable behavior? please advice.
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"Are you sure you want to clear the cache?"
delegate:self
cancelButtonTitle:@"No"
destructiveButtonTitle:@"Yes"
otherButtonTitles:nil];
[actionSheet showInView:self.view];
[actionSheet release];
iPads have some special rules about action sheets and their cancel buttons, depending on where you are displaying it from:
Here’s a link with more explanation: http://crazyviraj.blogspot.com/2010/05/showing-cancel-button-in.html