IOS facebook 应用程序幻灯片选项菜单

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12482782/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:13:24  来源:igfitidea点击:

IOS facebook app slide option menu

iosxcodeios5

提问by user1302602

Possible Duplicate:
SplitView like Facebook app on iPhone

可能的重复:
SplitView 就像 iPhone 上的 Facebook 应用程序

I need a control that will split a screen into 2 different views when click. It is kind of like this [1]: http://i51.tinypic.com/2112zwh.pngI had used inferis/view deck but it screw out my navigation controller. Basically it can't perform any segue I am using StoryBoard with navigation controller and also tab controller.

我需要一个控件,可以在单击时将屏幕拆分为 2 个不同的视图。它有点像这样 [1]:http: //i51.tinypic.com/2112zwh.png 我曾经使用过 inferis/view 甲板,但它搞砸了我的导航控制器。基本上它不能执行任何 segue 我正在使用带有导航控制器和选项卡控制器的 StoryBoard。

Anyone has any idea how to have this kind of menu but works with storyboard and navigation controller, tab controller?

任何人都知道如何拥有这种菜单,但可以与故事板和导航控制器、选项卡控制器一起使用?

回答by Kyle Begeman

I made a video (3 parts) on youtube on how to make a sliding menu like the on you are looking for. I show you how to set up the project and get everything linked up.

我在 youtube 上制作了一个视频(3 部分),介绍如何制作您正在寻找的滑动菜单。我将向您展示如何设置项目并将所有内容联系起来。

http://www.youtube.com/watch?v=tJJMyzdB9uI

http://www.youtube.com/watch?v=tJJMyzdB9uI

You will have to create UINavigationControllers instead of plain UIView controllers if you want to use that tutorial, but its basically just selecting one or the other.

如果您想使用该教程,您将不得不创建 UINavigationControllers 而不是普通的 UIView 控制器,但它基本上只是选择一个或另一个。

The cool thing about ECSlidingViewController (Its the one I use) is that just about everything you want to configure (how far a view slides, the animations, left or right side) is done with a single line of code (sometimes 2 or 3 lines)

ECSlidingViewController(它是我使用的那个)很酷的一点是,几乎所有你想要配置的东西(视图滑动多远、动画、左侧或右侧)都是用一行代码(有时是 2 或 3 行)完成的)

Try it out and see if it works for you?

尝试一下,看看它是否适合你?

回答by atrljoe

I used the JTRevealSidebarProject to build mine. I used storyboards, and segues in my project and got everything working without any troubles. Take a look at the demos, and it should be pretty easy to implement. If you have any specific issues when you do get it implemented feel free to post questions about your issues.

我使用JTRevealSidebar项目来构建我的。我在我的项目中使用了故事板和转场,并且一切顺利。看看演示,它应该很容易实现。如果您在实施时遇到任何具体问题,请随时发布有关您的问题的问题。