Advertisements
UIActionSheet by example
UIActionSheet programatically in code
UIActionSheet *actionsheet = [[UIActionSheet alloc]initWithTitle:@"Eezy" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:@"Ok", nil]; [actionsheet showInView:self.view];
Delegate Method
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{ if (buttonIndex == 2) { NSLog(@"Cancel"); } else if (buttonIndex == 1) { NSLog(@"Ok"); } else if (buttonIndex == 0) { NSLog(@"Delete"); } }
Instance Methods
Implementation in progress
Advertisements