#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
{
// 自己隨心所欲創(chuàng)建的一個控制器
LeftViewController *vc = [[LeftViewController alloc] init];
// 調(diào)用這個方法
[self cw_presentViewController:vc configuration:CWDrawerTransitionDirectionLeft];
}