- (instancetype)initWithView:(UIView *)view
view:要按压的view - (CGPoint)locationInCoordinateSpace:(id<UICoordinateSpace>)coordinateSpace;
返回用户当前按压屏幕的坐标 - (void)cancelInteraction;
停止
代理
- (void)previewInteraction:(UIPreviewInteraction *)previewInteraction didUpdatePreviewTransition:(CGFloat)transitionProgress ended:(BOOL)ended UIKIT_AVAILABLE_IOS_ONLY(10_0); // transitionProgress ranges from 0 to 1
- (void)previewInteractionDidCancel:(UIPreviewInteraction *)previewInteraction
网友评论