如何创建类似于 iOS facebook 应用程序的侧边栏?

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

How to create a sidebar similar to the facebook app for iOS?

iphoneobjective-ciosipad

提问by hdoria

Possible Duplicate:
What's the best way to develop a sideswipe menu like the one in Facebook's new iOS app?

可能的重复:
开发像 Facebook 新 iOS 应用程序那样的侧滑菜单的最佳方法是什么?

How can i create a sidebar similar to the facebook app for iOS (iPhone/iPad)? That sidebar that appears when you slide your finger horizontally. There is a component for this or is it just a UIView?

如何为 iOS (iPhone/iPad) 创建类似于 Facebook 应用程序的侧边栏?当您水平滑动手指时出现的侧边栏。有一个组件或者它只是一个 UIView?

回答by Eduardo Scoz

You're in luck! Somebody just created a complete sample app showing how to create that, and includes a video of the effect. Here it is:

你很幸运!有人刚刚创建了一个完整的示例应用程序,展示了如何创建它,并包含一个效果视频。这里是:

https://github.com/BenHall/ios_facebook_style_navigation

https://github.com/BenHall/ios_facebook_style_navigation

回答by MatLecu

There is no already made component to do that given by Apple.

没有已经制作的组件来完成 Apple 提供的功能。

I would say it's just an UIView under the main one that is slided on the right.

我会说它只是在右侧滑动的主要 UIView 下的一个 UIView。

回答by Bourne

You might want to start from hereand work your way out. The basic idea is very much there.

您可能想从这里开始并努力解决问题。基本思想就在那里。