我有一个大框架,通过它我可以屏蔽一个较小的视图 现在我想检测只是较小的一个但触摸开始不允许我过滤蒙面视图 任何指针?
答案 0 :(得分:0)
- (void)viewDidLoad
{
UITapGestureRecognizer *gr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(UIviewTapped:)];
[yourUIview addGestureRecognizer:gr];
}
-(void) UIviewTapped:(UIView *)view
{
// write touched code here.
}