抽屉效果+TabBarController

整理下抽屉效果和TabBarController混合使用,这里抽屉效果用到的库是RESideMenu.

对于这个库的使用,就不过多介绍了,使用很简单,下面介绍下如何和TabBarController混合使用:

1.使用cocoapods 导入RESideMenu库;

2.在AppDelegate.m中导入头文件#import ,

3.在didFinishLaunchingWithOptions方法中coding:

抽屉效果+TabBarController_第1张图片
AppDelegate设置

4.左侧VC创建TableView,在didSelectRowAtIndexPath方法中coding:

抽屉效果+TabBarController_第2张图片
LeftVC设置

好了,基本操作大致这些,下面看下效果图:


抽屉效果+TabBarController_第3张图片
效果图

Demo地址:github.com/action163/GHSideMenu

你可能感兴趣的:(抽屉效果+TabBarController)