文章来源:淘论文网   发布者: 毕业设计   浏览量: 33



还可以点击去查询以下关键词:
[交互式]    [过渡]    [定制]    [菜单]    [管理器]    [交互式过渡定制菜单管理器]   

项目介绍:

项目简介FlowingMenu

FlowingMenu提供了一个交互式过渡管理器来显示一个流动和弹跳效果的菜单。

环境需求:

iOS 8.0+
Xcode 8.0+
Swift 3.0+
使用方法

首先,论文开题报告,导入FlowingMenu

import FlowingMenu
然后只需添加一个FlowingMenuTransitionManager对象作为一个你想要展示的视图控件的transitioningDelegate即可:

let flowingMenuTransitionManager = FlowingMenuTransitionManager()
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
let vc = segue.destination
vc.transitioningDelegate = flowingMenuTransitionManager
}
如果你想要交互式过渡,你需要实现FlowingMenuDelegate对象并定义需要手势交互的视图:

var menu: UIViewController?
override func viewDidLoad() {
super.viewDidLoad()
// Add the pan screen edge gesture to the current view
flowingMenuTransitionManager.setInteractivePresentationView(view)
// Add the delegate to respond to interactive transition events
flowingMenuTransitionManager.delegate = self
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
let vc = segue.destination
vc.transitioningDelegate = flowingMenuTransitionManager
// Add the left pan gesture to the menu
flowingMenuTransitionManager.setInteractiveDismissView(vc.view)
// Keep a reference of the current menu
menu = vc
}
// MARK: - FlowingMenu Delegate Methods
func flowingMenuNeedsPresentMenu(_ flowingMenu: FlowingMenuTransitionManager) {
performSegue(withIdentifier: "PresentSegueName", sender: self)
}
func flowingMenuNeedsDismissMenu(_ flowingMenu: FlowingMenuTransitionManager) {
menu?.performSegue(withIdentifier: "DismissSegueName", sender: self)
}

github地址:https://github.com/yannickl/FlowingMenu


这里还有:


还可以点击去查询:
[交互式]    [过渡]    [定制]    [菜单]    [管理器]    [交互式过渡定制菜单管理器]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/7602.docx
  • 上一篇:简单好用的图毕业设计片轮播框架
  • 下一篇:可自定义定制标签控件