场景:一个scrollview上加了一些button,现在点击button,想要通过触摸点在父视图
中的位置,来设置scrollview的contentoffset属性,那么我要怎么获取点坐标呢
CGRect frame = [self.button convertRect:self.button.bounds toView:self.scrollView];
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self.view];
这个可以获取当前触摸点的坐标