Try the following~
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Title"message:message delegate:self cancelButtonTitle:@"Cancel"otherButtonTitles:@"OK", nil];
- (void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 0) //NO
{
}
else //OK
{
}
}
That's all~
댓글 없음:
댓글 쓰기