UIImageView *imageView =[[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 200, 200)];
imageView.image = [UIImage imageNamed:@"tianjiazhaopian.png"];
imageView.userInteractionEnabled = YES;
UIGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(open:)];
[imageView addGestureRecognizer:singleTap];
[self.view addSubview:imageView];