Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个大框架,通过它我掩盖了一个较小的视图,现在我想检测较小的一个,但触摸开始不允许我过滤蒙面视图的任何指针?
- (void)viewDidLoad { UITapGestureRecognizer *gr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(UIviewTapped:)]; [yourUIview addGestureRecognizer:gr]; } -(void) UIviewTapped:(UIView *)view { // write touched code here. }