简体   繁体   English

如何将汉堡菜单添加到Xamarin iOS项目?

[英]How do I add burger menu to Xamarin iOS project?

I need to add a menu to a Xamarin iOS project. 我需要向Xamarin iOS项目添加菜单。

I have a page (viewController). 我有一个页面(viewController)。 It's the home page and I need to add the menu on this page. 这是主页,我需要在此页面上添加菜单。

Can anyone tell me how? 谁能告诉我如何?

You can also try this without having to use any third party library 您也可以尝试此操作,而不必使用任何第三方库

Hamburger menu in xamarin iOS Xamarin iOS中的汉堡包菜单

在此处输入图片说明

You can try out Xamarin.SideMenu: https://github.com/TheEightBot/Xamarin.SideMenu 您可以尝试Xamarin.SideMenu: https : //github.com/TheEightBot/Xamarin.SideMenu

There is also some library available in the Xamarin Component Store (Sidebar Navigation, SlideMenuController, ...) Xamarin组件存储中还有一些库(侧边栏导航,SlideMenuController等)。

Alternatively, you can code your own. 或者,您可以编写自己的代码。 Here is some tutorials about how to do it (it is in Obj-C/Swift, but you can translate it to C# easily): 这是一些有关如何做的教程(它在Obj-C / Swift中,但是您可以轻松地将其转换为C#):

https://www.appcoda.com/ios-programming-sidebar-navigation-menu/ https://www.raywenderlich.com/32054/how-to-create-a-slide-out-navigation-like-facebook-and-path https://www.thorntech.com/2016/03/ios-tutorial-make-interactive-slide-menu-swift/ https://www.appcoda.com/ios-programming-sidebar-navigation-menu/ https://www.raywenderlich.com/32054/how-to-create-a-slide-out-navigation-like-facebook-和路径 https://www.thorntech.com/2016/03/ios-tutorial-make-interactive-slide-menu-swift/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM