Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "ViewController.h"
- @interface ViewController ()
- @end
- @implementation ViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- - (IBAction)ClickHere:(id)sender {
- UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Lac Hong University" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Thieu Mao", @"Mot Mao", nil];
- NSLog(@"%i",actionSheet.numberOfButtons);
- [actionSheet showInView:self.view];
- }
- -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
- NSLog(@"Content: %@", [actionSheet buttonTitleAtIndex:buttonIndex]);
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement