美文网首页
UIGestureRecognizer

UIGestureRecognizer

作者: Show撑腰 | 来源:发表于2016-01-12 23:58 被阅读0次

    - (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldReceiveTouch:(UITouch*)touch

    {

    //左边能点击,右边不能点击

    //获取触摸点位置

    CGPointcurP = [touchlocationInView:self.view];

    if(curP.x

    NSLog(@"-----------------");

    returnYES;

    }else{

    NSLog(@"+++++++++++++++++");

    returnNO;

    }

    }

    相关文章

      网友评论

          本文标题:UIGestureRecognizer

          本文链接:https://www.haomeiwen.com/subject/qbjckttx.html