forked from linsyorozuya/JianShuPopViewDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLHCustomModalTransition.h
34 lines (27 loc) · 1.13 KB
/
LHCustomModalTransition.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// LHCustomModalTransition.h
// JianShuPopViewDemo
//
// Created by LinGrea on 16/2/2.
// Copyright © 2016年 Lin. All rights reserved.
//
#import <UIKit/UIKit.h>
//---动画类型
typedef NS_ENUM(NSUInteger, LHCustomModalTransitionStyle) {
LHCustomScaleTransitionStyle,//---简单缩放
LHCustomScaleAndRotateTransitionStyle,//---简书效果(旋转加缩放)
};
@interface LHCustomModalTransition : NSObject<UIViewControllerAnimatedTransitioning,UIViewControllerInteractiveTransitioning,UIViewControllerTransitioningDelegate,UIGestureRecognizerDelegate>
//---设置是否可拖拽(默认:不可拖动)
@property (nonatomic, assign, getter=isDragable) BOOL dragable;
//---设置动画样式
@property (nonatomic, assign) LHCustomModalTransitionStyle transitionStyle;
//---设置动画时间
@property (nonatomic, assign) CGFloat duration;
//---设置缩放的比例
@property (nonatomic, assign) CGFloat behindViewScale;
//---设置缩放VC透明度
@property (nonatomic, assign) CGFloat behindViewAlpha;
//---初始化 model视图控制器
- (id)initWithModalViewController:(UIViewController *)modalViewController;
@end