• 图片点击事件


    1 UIImageView *imageView = [[[UIImageView alloc] init];
    2 imageView.image = [UIImage imageNamed:@"image.png"];
    3 
    4 //设置
    5 imageView.userInteraction = YES; 6 //图片点击事件 7 UITapGestureRecognizer *gestureRecognize = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickImage)]; 8 [topView addGestureRecognizer:gestureRecognize]; 9 [gestureRecognize release];
  • 相关阅读:
    2.8
    2.7
    2.6
    2.5
    2.4第三篇读后感
    2.2第一篇读后感
    2.1
    字符统计
    6468: Snuke's Coloring
    6463: Tak and Hotels II
  • 原文地址:https://www.cnblogs.com/wangshengl9263/p/3243266.html
Copyright © 2020-2023  润新知