theeightbot / xamarin.sidemenu Goto Github PK
View Code? Open in Web Editor NEWAn elegant side menu for iOS
License: Other
An elegant side menu for iOS
License: Other
NavigationItem.SetLeftBarButtonItem(new UIBarButtonItem(UIImage.FromBundle("menu.png"), UIBarButtonItemStyle.Plain, (sender, e) =>
{
PresentViewController(sideMenuManager.LeftNavigationController, true, null);
SideMenu works perfectly,but with one exception and i have no idea why this happens.
When i'm using simple Navigation controller that is linked to view controller as root,all is going pretty well.
So the problem occurs when i'm doing the same stuff with TabBar Controller.
Example's :
So why this happens? Is this bug or its i'm doing something incorrectly ?
Thanks for attention.
PSS Sorry for my Eng. skills !
UPD:
Okay, seems now i understand why that happens.
I have implemented sample project with source code of Xamarin.SideMenu and here in UISideMenuNavigationController
class there is overridden method :
public override void PushViewController(UIViewController viewController, bool animated)
{
if (ViewControllers.Length <= 0)
{
// NOTE: pushViewController is called by init(rootViewController: UIViewController)
// so we must perform the normal super method in this case.
base.PushViewController(viewController, animated: true);
return;
}
var presentingViewController = PresentingViewController as UINavigationController;
if (presentingViewController == null)
{
PresentViewController(viewController, animated, null);
System.Diagnostics.Debug.WriteLine("SideMenu Warning: cannot push a ViewController from a ViewController without a NavigationController. It will be presented it instead.");
return;
}
If i'm using Tab Bar controller(that can't have NavigationController
) as root, then i'm getting always null here :
var presentingViewController = PresentingViewController as UINavigationController;
with this message:
System.Diagnostics.Debug.WriteLine("SideMenu Warning: cannot push a ViewController from a ViewController without a NavigationController. It will be presented it instead.");
That is clear for me, but anyway how to workaround, any advice ?
Hi,
I've been using this neat component for a new app that I'm working on. But since I updated to ios 11 I have a gap above the navigationbar of the main screen when the menu is shown.
I guess (or fear) it's related to the new ios11 features that UINavigationBar has it's own Autolayout stuff or that sizes aren't returned as pre-ios11...
Setting fadeStatusBar to false or true doesn't change a thing..
Can I using this Library in Xamarin froms
the same like https://github.com/yahavgb/LGSideMenuController-Xamarin
Below ios V13.0 calling constructer of UISideMenuNavigationController shows black screen on first time open app . on the second time it works perfectly
Describe the bug
With the 'FadeStatusBar' switch set to 'Off' in the example project, the menu is overlaid with a black box after changing the orientation of an iPad from landscape to portrait. It only happens after changing from landscape to portrait, it's working correctly from portrait to landscape.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The menu should always be visible without black boxes covering it.
I'm using UITableViewVibrantCell.
It seems to me that the cell height does not adapt to the image height.
How can I solve this problem ?
Thanks in advanced.
how to disable side view controller title space?
I would like to use this tool as programmatically,but also via Storyboard. Thanks!
PS Sorry for my eng skills :(
I tried to use SideMenu inside my mvvmcross project, but view is not loaded and app is crashing on ViewDidLoad because of null reference. Is package compatible with mvvmcross?
Ok, I have this case: I have a UINavigationController, and its rootviewcontroller is a common view. I tried to use it with sidemenu, and the view simply doesn't appear on it.
There are some way that I can use a simple viewcontroller as my menu layout, or I'm forced to use a TableViewController, or a TabBarController?
how to control of side menu dismissal of tapping outside menu
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.