UIPreviewInteraction 3d按压
2018-05-14 本文已影响0人
絮语时光杨
- (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