SWRevealViewController使侧边栏按钮静态&使后视图显示在frontView的顶部 [英] SWRevealViewController make sidebar button static & make the rearView appear on top of the frontView

查看:134
本文介绍了SWRevealViewController使侧边栏按钮静态&使后视图显示在frontView的顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以使用Objective-C使后视图显示在frontView的顶部,如故事板中的下图所示。我想让前视图导航固定&使侧边栏按钮静止。

Is there any way to make the rearView appear on top of the frontView as below image in storyboard using Objective-C. I want to make the Front View navigation Fixed & make sidebar button static.

推荐答案

这种android抽屉外部和开源库称为 CCKFNavDrawer

This kind of android drawer external and open source library called as a CCKFNavDrawer.

CCKFNavDrawer

使用以下代码。

self.rootNav = (CCKFNavDrawer *)self.navigationController;
[self.rootNav setCCKFNavDrawerDelegate:self];

然后实现委托方法

- (void)CCKFNavDrawerSelection:(NSInteger)selectionIndex
{
  NSLog(@"%i", selectionIndex);
}

这可以帮助很多。

这篇关于SWRevealViewController使侧边栏按钮静态&使后视图显示在frontView的顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆