滑动边栏菜单IOS 8 Swift [英] Slide Sidebar Menu IOS 8 Swift

查看:117
本文介绍了滑动边栏菜单IOS 8 Swift的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在没有任何第三方库的情况下在IOS Swift中实现Slide Sidebar Menu(如Facebook应用程序)?我寻找解决方案,但我只创建了在Objective-C中实现的这个功能。

Is there a way to implement Slide Sidebar Menu (Like Facebook app) in IOS Swift without any third party library? I look for solutions but I only founded this feature implemented in Objective-C.

推荐答案

我相信你可以从UISplitViewController开始形式在iOS8中大幅更新。观看会议在iOS8中查看控制器进度使用UIKit构建自适应应用程序了解详细信息。他们提供第二次会议的代码示例(但不是第一次会议的代码示例: /)。在这一点上,我很自然地在iOS8中基于分割视图控制器制作这种UI。

I believe you can start form UISplitViewController which was drastically updated in iOS8. Watch sessions View Controller Advancements in iOS8 and Building Adaptive Apps with UIKit for details. They provide code example from second session (but not form first one :/). At this point it feels natural for me to make this kind of UI based on split view controller in iOS8.

更新:看起来并非所有他们谈论的API都落地了然而。例如,在视频中提到的当前beta4中没有提供BarsOnSwipe。

Update: It looks like not all API they talking about are landed yet. In current beta4 mentioned in video condensesBarsOnSwipe is not presented, for example.

这篇关于滑动边栏菜单IOS 8 Swift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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