UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)]; [self.timeBackView addGestureRecognizer:tap]; - (void)tapAction:(UITapGestureRecognizer *)tap { //当前坐标 CGPoint p = [tap locationInView:tap.view]; }
时间: 2024-10-19 13:48:36