UIView添加手势

_shareImage.userInteractionEnabled=YES;

UITapGestureRecognizer *imagegesture=[[UITapGestureRecognizer alloc] initWithTarget:_delegate action:@selector(OnTouchImageViewHiddenKeyboard)];

imagegesture.numberOfTapsRequired=1;

[_shareImage addGestureRecognizer:imagegesture];

上一篇:Bootstrap源码分析之dropdown


下一篇:bootstrap基础知识