带有垂直菜单的 iOS 水平 SlideView

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11682110/
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 19:27:57  来源:igfitidea点击:

iOS horizontal SlideView with vertical menu

iosxcodemenu

提问by Eugene Trapeznikov

nowadays lots of iOS iPhone application got a vertical menu and sliding views.

现在很多 iOS iPhone 应用程序都有一个垂直菜单和滑动视图。

It looks like this:

它看起来像这样:

enter image description here

在此处输入图片说明

I cannot find any examples in Inernet. Need your help, thnx

我在 Inernet 中找不到任何示例。需要你的帮助,谢谢

采纳答案by parilogic

For iPhone you can use this one : ZUUIRevealController

对于 iPhone,你可以使用这个:ZUUIRevealController

回答by Niranjan Balkrishna Prajapati

Its explained here pretty much properly step by step those who are interested in doing so without using customised menus can check here :

它在这里一步一步地解释得非常正确,那些有兴趣在不使用自定义菜单的情况下这样做的人可以在这里查看:

http://www.raywenderlich.com/32054/how-to-create-a-slide-out-navigation-like-facebook-and-path

http://www.raywenderlich.com/32054/how-to-create-a-slide-out-navigation-like-facebook-and-path

回答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

This uses the ECSlidingViewController, and the setup is a little different than you might expect but it works really well and is very smooth.

这使用了 ECSlidingViewController,设置与您的预期略有不同,但它运行得非常好并且非常流畅。

I have tested it with navigationcontroller as well so hope this helps!

我也用导航控制器对其进行了测试,所以希望这会有所帮助!

回答by rdelmar

This looks like a standard UITableView, which, when you click on a row, pushes another view controller's view onto the screen (but you would usually have a disclosure indicator, a ">", not a check mark in the row).

这看起来像一个标准的 UITableView,当你点击一行时,它会将另一个视图控制器的视图推送到屏幕上(但你通常会有一个显示指示器,一个“>”,而不是行中的复选标记)。

Apple has an example in the docs called TheElements. Have a look at that one and see if that's something like what you want. When you click on an element name in the table it slides another view with more information about that element over the table.

Apple 在名为 TheElements 的文档中有一个示例。看看那个,看看它是否像你想要的那样。当您单击表格中的元素名称时,它会在表格上滑动另一个视图,其中包含有关该元素的更多信息。