摘要:
//// touchViewController.m// touch//// Created by joe visen on 11-9-21.// Copyright 2011 mjrj.com. All rights reserved.//#import "touchViewController.h"@implementation touchViewController- (void)loadView{ [super loadView]; UILongPressGestureRecognizer *longPressGesture = [[UILongPressGestu 阅读全文
摘要:
自己做了一个九宫格,里面的图标都是由多张图片重叠构成,然后包装成一个button来使用;遇到的问题是如何给这个“button”增加点击事件?解决思路1:网友提示在该“button”上增加一个真正的透明button,这样就可以顺利执行点击事件了;但是本人尝试发现,如果我调整了button的透明度后,点击是没有效果的!可能是我操作错误,待再次验证。解决思路2:为UIImageView增加手势[ImageViewaddGestureRecognizer:我们自己的手势recognizer];如何创建一个手势?看看UITapGestureRecognizer的用法吧//单指单击UITapGesture 阅读全文