Ok, I created my UIActionSheet and populated it with 5 buttons. Now how do I determine which button is pressed (to continue on with the operation of my application)?
I tried using:
When I drop this into my application, NSLog doesn't show anything no matter what button I press?
I tried using:
Code:
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
// the user clicked one of the OK/Cancel buttons
if (buttonIndex == 0)
{
NSLog(@"ok");
}
}
When I drop this into my application, NSLog doesn't show anything no matter what button I press?