Code Monkey home page Code Monkey logo

Comments (8)

tharak avatar tharak commented on May 18, 2024 1

https://github.com/tharak/SideMenu
;)

from sidemenu.

jonkykong avatar jonkykong commented on May 18, 2024 1

It is the window's root view controller.

The problem was that you physically inserted a UITableView inside of UISideMenuNavigationController. You shouldn't do that.

Instead, do UISideMenuNavigationController(rootViewController: someUITableViewController).

from sidemenu.

jonkykong avatar jonkykong commented on May 18, 2024

Hi @tharak, thanks for the compliment.

There's no requirement that this repo needs storyboards. You should try putting in breakpoints in several places to figure out what's being called on tap and what isn't to track down the problem first. If you want to share a link to your sample project, I'd be willing to take a look.

from sidemenu.

jonkykong avatar jonkykong commented on May 18, 2024

Thanks for sharing.

It looks like you're doing something atypical that wasn't accounted for in the design of this library.

Namely, you're adding a UITableView directly to the view of a UINavigationController. UINavigationControllers are meant to host other viewControllers, not serve as a viewController themselves.

The preferred setup is to set the rootViewController of a UINavigationController to a UITableViewController.

from sidemenu.

tharak avatar tharak commented on May 18, 2024

Do you mind fixing my project as you think it should be?

from sidemenu.

jonkykong avatar jonkykong commented on May 18, 2024

Unfortunately, I don't have the time to develop for every possible corner case of this repo. Currently, it meets 90%+ of people's desired use cases.

Your problem is very solvable by following Apple's preferred and supported view hierarchy models. I suggest you do some quick rework of your project and you'll find your problem goes away.

from sidemenu.

tharak avatar tharak commented on May 18, 2024

I will try to do it, thanks for your help. =]

from sidemenu.

tharak avatar tharak commented on May 18, 2024

managed to make it work, problem was that when I looked at the third image https://github.com/jonkykong/SideMenu/raw/master/etc/Screenshot3.png the little arrow on the left gave the impression that that view controller was the window.rootViewController. This detail shows some errors that I went on fixing, resulting on the first code I shared with you.
Now I will move the code to my project, thanks for everything!

from sidemenu.

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.