i have a uiactionsheet and the buttom button doesnt work correctly the first time i press it, or the second, but only numerous times after trying. I tried removing the cancel button at the bottom and leaving a button title however none of these steps solved the problem. This is the code i am using:
UIActionSheet *aSheet = [[UIActionSheet alloc]
initWithTitle:nil
delegate:self
cancelButtonTitle:nil
destructiveButtonTitle: @"Close"
otherButtonTitles:@"6940313388", @"2", @"3", @"4", nil];