iOS:获取点击坐标

时间:2015-04-01 19:59:34   收藏:0   阅读:231
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
[self.timeBackView addGestureRecognizer:tap];

- (void)tapAction:(UITapGestureRecognizer *)tap
{
    //当前坐标
    CGPoint p = [tap locationInView:tap.view];
}

原文:http://blog.csdn.net/u013243469/article/details/44811309

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!