level 3
y8899898989
楼主
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UITapGestureRecognizer *customGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:^(UITapGestureRecognizer *)con{
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Title"
message:@"Message"
delegate:nil //or self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
}];
[self.view addGestureRecognizer: customGesture ];
2014年06月27日 02点06分
1
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UITapGestureRecognizer *customGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:^(UITapGestureRecognizer *)con{
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Title"
message:@"Message"
delegate:nil //or self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
}];
[self.view addGestureRecognizer: customGesture ];