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.
我在控件上使用 LongPress 并在视图中拖动不同的位置。我使用 UIGestureRecognizerStateBegan 找到了起始位置。我如何找到 UIGestureRecognizerStateChanged 位置?
if( UIGestureRecognizerStateChanged) { CGPoint center = snapshot.center; center.y = location.y; snapshot.center = center; } if (UIGestureRecognizerStateEnded) { location = [longPress locationInView:self.tableView]; }