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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// WWSideslipViewController.h
// WWSideslipViewControllerSample
//
// Created by 王维 on 14-8-26.
// Copyright (c) 2014年 wangwei. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WWSideslipViewController : UIViewController{
@private
UIViewController * leftControl;
UIViewController * mainControl;
UIViewController * righControl;
UIImageView * imgBackground;
CGFloat scalef;
}
//滑动速度系数-建议在0.5-1之间。默认为0.5
@property (assign,nonatomic) CGFloat speedf;
//是否允许点击视图恢复视图位置。默认为yes
@property (strong) UITapGestureRecognizer *sideslipTapGes;
//初始化
-(instancetype)initWithLeftView:(UIViewController *)LeftView
andMainView:(UIViewController *)MainView
andRightView:(UIViewController *)RighView
andBackgroundImage:(UIImage *)image;
@property (nonatomic, assign) BOOL isShowLeft;
//恢复位置
-(void)showMainView;
//显示左视图
-(void)showLeftView;
//显示右视图
-(void)showRighView;
@end