Git Product home page Git Product logo

Comments (16)

ramki1979 avatar ramki1979 commented on September 26, 2024

I am working on this for last 2days but not able to find the reason. I have added some NSLog's to the Example code...

This is what I observed,

2013-08-15 18:57:54.363 RESideMenuExample[7674:907] Home action is called 2013-08-15 18:57:54.377 RESideMenuExample[7674:907] viewDidLoad 2013-08-15 18:57:54.385 RESideMenuExample[7674:907] viewWillAppear

After playing with fast gestures the view disappeared.
Now the view has gone outside of the screen and neither viewWillDisappear nor viewDidDisappear is called..

Now I selected the "Explore" menuItem and the log is below

2013-08-15 18:59:40.589 RESideMenuExample[7674:907] Explore action is called
2013-08-15 18:59:40.596 RESideMenuExample[7674:907] viewWillDisappear
2013-08-15 18:59:40.601 RESideMenuExample[7674:907] viewDidLoad
2013-08-15 18:59:40.604 RESideMenuExample[7674:907] viewWillAppear
2013-08-15 18:59:40.610 RESideMenuExample[7674:907] viewDidDisappear

as far as iOS is concerned the Home viewController is disappeared now and Explore viewController is loaded and displayed, but we are only able to see the RESideMenu viewController.

Have anyone have any idea what going wrong here..

from residemenu.

romaonthego avatar romaonthego commented on September 26, 2024

It looks like this problem only occurs when there a swipe-to-open gesture is present:

[self sideMenu] showFromPanGesture:sender];

Can you confirm that? I've been trying to reproduce it without this code and the issue seems to disappear.

from residemenu.

ramki1979 avatar ramki1979 commented on September 26, 2024

@romaonthego If we use taps(click on the Navigation Menu) rather than swipe-right gesture then there is no issue.

The issue only exist's only when we use swipe to right gesture and when the swipe is very fast.

[self sideMenu] showFromPanGesture:sender]; this will disable the swipe feature entirely..

from residemenu.

LukeLu1263 avatar LukeLu1263 commented on September 26, 2024

substitute [[self sideMenu] show] for [self sideMenu] showFromPanGesture:sender];

from residemenu.

ramki1979 avatar ramki1979 commented on September 26, 2024

@LukeLu1263 it don't solve the problem. It just imitating the "menu" functionality.

I might use this only when I don't have the "menu" button or it's navigation set to some other feature of the app.

from residemenu.

LukeLu1263 avatar LukeLu1263 commented on September 26, 2024
  • (void)viewDidLoad
    {
    [super viewDidLoad];
    [self addPanGesture:self.view];
    }
  • (void)addPanGesture:(UIView *)view
    {
    UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeHandler:)];
    swipeGesture.direction = UISwipeGestureRecognizerDirectionRight;
    [view addGestureRecognizer:swipeGesture];
    }
  • (void)swipeHandler:(UIPanGestureRecognizer *)sender
    {
    // [[self sideMenu] showFromPanGesture:sender]; // bug
    [[self sideMenu] show];
    }

from residemenu.

ramki1979 avatar ramki1979 commented on September 26, 2024

@LukeLu1263 what I mean when It just imitating the "menu" functionality. user will no longer able to control the gesture animation.

Once the user swipeGesture is recognised the show selector is called and animation starts and gets completed without any further control on the user part and remain's as static view irrespective of whether user still panning or not.

from residemenu.

LukeLu1263 avatar LukeLu1263 commented on September 26, 2024

Oh! I got it. but this app doesn't made by me. May be the origin maker will solve this problem. what you want, so am I.

from residemenu.

LukeLu1263 avatar LukeLu1263 commented on September 26, 2024

the bug is not only this one. there's another issue that if you call swipeGesture to switching, the demoVC will not call viewDidLoad and if tap item, the demoVC will call viewDidLoad again. Set the demoVC to be the global variable also doesn't work. How can I do? Is it possible that I modify this code by myself?

from residemenu.

michelzanini avatar michelzanini commented on September 26, 2024

This is a major bug. Please fix it. Thanks =]

from residemenu.

ninewine avatar ninewine commented on September 26, 2024

This bug is alway there, Please check it out.

from residemenu.

LukeLu1263 avatar LukeLu1263 commented on September 26, 2024

Haha! Try yourself. iOS 7 already came.

from residemenu.

jxdwinter avatar jxdwinter commented on September 26, 2024

+1, please fix this. Thank you.

from residemenu.

satheeshwaran avatar satheeshwaran commented on September 26, 2024

Please fix this issue, the control is awesome. This issue is occurring often in device.

from residemenu.

satheeshwaran avatar satheeshwaran commented on September 26, 2024

Awesome fix, thanks a ton!

from residemenu.

LukeLu1263 avatar LukeLu1263 commented on September 26, 2024

Amazing fix, thanks!

from residemenu.

Related Issues (20)

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.