Skip to content

Commit

Permalink
增加显示默认效果抽屉API
Browse files Browse the repository at this point in the history
  • Loading branch information
ChavezChen committed Jan 16, 2018
1 parent cea55ea commit d0fa239
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
13 changes: 10 additions & 3 deletions CWLateralSlide/UIViewController+CWLateralSlide.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@

@interface UIViewController (CWLateralSlide)

/*-----------------------------------v1.4.2-----------------------------------------*/
/*-----------------------------------v1.4.2-----------------------------------------*/
/*-----------------------------------v1.4.2-----------------------------------------*/
/*-----------------------------------v1.5.1-----------------------------------------*/
/*-----------------------------------v1.5.1-----------------------------------------*/
/*-----------------------------------v1.5.1-----------------------------------------*/

/**
显示默认抽屉
从左侧滑出类似QQ抽屉效果
@param viewController 需要侧滑显示出来的控制器
*/
- (void)cw_showDefaultDrawerViewController:(UIViewController *)viewController;

/**
呼出侧滑控制器的方法(主要)
Expand Down
5 changes: 5 additions & 0 deletions CWLateralSlide/UIViewController+CWLateralSlide.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

@implementation UIViewController (CWLateralSlide)

// 显示默认抽屉
- (void)cw_showDefaultDrawerViewController:(UIViewController *)viewController {
[self cw_showDrawerViewController:viewController animationType:CWDrawerAnimationTypeDefault configuration:nil];
}

// 显示抽屉
- (void)cw_showDrawerViewController:(UIViewController *)viewController animationType:(CWDrawerAnimationType)animationType configuration:(CWLateralSlideConfiguration *)configuration {

Expand Down
Binary file not shown.

0 comments on commit d0fa239

Please sign in to comment.