#import "LeftViewController.h"
#import "UIViewController+CWLateralSlide.h"
[super viewDidLoad];
UIBarButtonItem *bu=[[UIBarButtonItem alloc]initWithTitle:@"左" style:UIBarButtonItemStylePlain target:self action:@selector(fan)];
self.navigationItem.leftBarButtonItem=bu;
}
-(void)fan
{
// 自己随心所欲创建的一个控制器
LeftViewController *vc = [[LeftViewController alloc] init];
// 调用这个方法
[self cw_presentViewController:vc configuration:CWDrawerTransitionDirectionLeft];
}