标签:self 手势 nbsp targe 传递 elf res ini ges
一、手势
(1) Tap、LongPress...
二、手势在视图间的传递
Class SubView:UIView {
}
SubView *subView = [SubView new];
(1)视图上添加手势
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(annoViewAction:)];
[subView addGestureRecognizer:tapGesture];
(2)手势中获取当前视图
SubView *subview = (SubView*)gesture.view;
标签:self 手势 nbsp targe 传递 elf res ini ges
原文地址:https://www.cnblogs.com/share-iOS/p/9746716.html