GithubHelp home page GithubHelp logo

xamarin.sidemenu's People

Contributors

arotolo avatar michaelstonis avatar vetaliostv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xamarin.sidemenu's Issues

Navigation stack is broken with TabBar Controller

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 :

  1. works smoothly as expected:
    workssimple
  2. same stuff with TabBar Controller and navigation stack is broken :
    notworkstab

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 ?

ios 11 - gap above Navigationbar when using SideIn or Dissolve

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..

Black screen issue

Below ios V13.0 calling constructer of UISideMenuNavigationController shows black screen on first time open app . on the second time it works perfectly

FadeStatusBar option adds black box after device orientation change

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:

  1. Setup the example project to run on iPads in all orientations
  2. Set the 'FadeStatusBar' switch to 'Off'
  3. Open the menu in landscape orientation on an iPad
  4. Rotate the iPad to portrait
  5. The menu is now mostly covered with a black box

Expected behaviour
The menu should always be visible without black boxes covering it.

Sample project doesn't work

Hi there.
Thanks for the port of this great library.
Unfortunately the sample project have some errors,also can you please provide an example how to use this library via Storyboard(Xamarin.iOS Designer)!?
Thanks!
2017-02-18 17 32 26

Using with Mvvmcross

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?

Problem with storyboard controllers

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.