Code Monkey home page Code Monkey logo

Comments (15)

andreamazz avatar andreamazz commented on August 21, 2024

Hi @drallgood
I added about 40 elements to the first and second section each of the sample project, and the table scrolls just fine.
Did you customize the control in any way?

from slideoutnavigation.

drallgood avatar drallgood commented on August 21, 2024

I'm using these options:

 AMOptionsEnableShadow : @(YES),
 AMOptionsUseBorderedButton : @(borderedButton),
 AMOptionsEnableGesture: @(NO),
 AMOptionsBackground: backgroundColor,
 AMOptionsSelectionBackground: [UIColor colorWithRed:.298 green:.572 blue:.815 alpha:1.0f],
 AMOptionsHeaderFont: [UIFont fontWithName:@"AovelSans-Bold" size:20],
 AMOptionsHeaderFontColor : [UIColor whiteColor],
 AMOptionsCellFont : [UIFont fontWithName:@"AovelSans" size:18],
 AMOptionsCellFontColor: [UIColor whiteColor],
 AMOptionsCellBackground: backgroundColor,
 AMOptionsCellBadgeFont : [UIFont fontWithName:@"AovelSans" size:15],
 AMOptionsHeaderFont : [UIFont systemFontOfSize:14]

The menu items are added to the controller via the setMenuItems: method. Each menu item is added to the menuItems array with the following code:

    NSMutableDictionary* item = [[NSMutableDictionary alloc] init];
    item[kSOController] = controller;
    item[kSOViewTitle] = controller.roomName;
    item[kSOViewIcon] = @"";

    item[kSOViewTag] = @(controller.roomNumber);
    [menuItems[0][kSOSection] addObject:item];

from slideoutnavigation.

andreamazz avatar andreamazz commented on August 21, 2024

Hi
I tried with your options, and still can't reproduce the issue.
Can you reproduce it in the sample project?

from slideoutnavigation.

drallgood avatar drallgood commented on August 21, 2024

To be honest: No. I can't either.
Just tried it and it worked just fine... which is weird because I don't think I did anything special.

I copied all the code that has to do with SlideOutNavigation to the sample app delegate and even tried to reproduce the delayed (asynchronous) update of the list.

Any idea how to find out what's going on?

from slideoutnavigation.

drallgood avatar drallgood commented on August 21, 2024

I managed to reproduce it after all!
It's working fine on the iPhone but not on the iPad.

Here's the project: https://dl.dropboxusercontent.com/u/17133427/SlideOutSample.zip

from slideoutnavigation.

andreamazz avatar andreamazz commented on August 21, 2024

Huh, funny thing is, in portrait orientation it works fine. So I guess the culprit is the orientation handling. I'll look into it.

from slideoutnavigation.

andreamazz avatar andreamazz commented on August 21, 2024

Commit 39741e8 should fix the issue.

from slideoutnavigation.

drallgood avatar drallgood commented on August 21, 2024

Now it's completely broken ;)

ios simulator screen shot jan 27 2014 1 19 07 am

from slideoutnavigation.

andreamazz avatar andreamazz commented on August 21, 2024

Now that's fun. Removing the code that I added yesterday, the issue persists. It's probably due to the last pull request that I merged, which added quite a bit of code. I have to figure out what's causing this.
I'll keep you posted.

from slideoutnavigation.

drallgood avatar drallgood commented on August 21, 2024

Haha... Yeah. I figured that out, too.
I'll dig around a little bit, too, and let you know when I find something that might help.

from slideoutnavigation.

andreamazz avatar andreamazz commented on August 21, 2024

Ok, found the culprit.

    if([dict[kSOViewTag] integerValue] == self.currentTag) {
        [self hideSideMenu];
        return;
    }

You need to use tags (greater than 0) or the first call to the VC selector will do nothing.
I'll push a new version later, I guess I'll just remove those lines, since they break compatibility pretty bad.

from slideoutnavigation.

andreamazz avatar andreamazz commented on August 21, 2024

Checkout commit e598aa4

from slideoutnavigation.

drallgood avatar drallgood commented on August 21, 2024

hmm.. That didn't do it. It's still not showing the first controller

from slideoutnavigation.

drallgood avatar drallgood commented on August 21, 2024

Sorry. My bad. It did fix it.
Somehow I just thought I had pulled your changes and apparently I didn't.

Thanks for your time!!!

from slideoutnavigation.

andreamazz avatar andreamazz commented on August 21, 2024

Glad I could help.
🍺

from slideoutnavigation.

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.