简体   繁体   中英

How to add a tabbar to the frontview controller of SWRevealViewController

I am using SWRevealViewController for my side menu. and it works fine. But now what I want to do is add tab bar to the bottom, Remove the menu button from the navigation bar, and add it as the first item of the tabbar.

在此处输入图片说明

When click on the first tab item the side menu should come as normal way from theleft side. How I can do this with SWRevealViewController

Please help me. Thanks

Create Property and connect to tab bar button

@property (weak,nonatomic) IBOutlet UIBarButtonItem *BarButton;

then put in viewDidLoad: methods

_BarButton.target = self.revealViewController;
_BarButton.action = @selector(revealToggle:);

I think its helping you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM