Giter Club home page Giter Club logo

Comments (5)

jamonholmgren avatar jamonholmgren commented on August 17, 2024

Hi @arkan! I haven't used those libraries directly, but @macfanatic used one that is similar:

https://github.com/macfanatic/promotion_slide_menu

He's using PKRevealController.

Example of the API:

# Show the menu
App.delegate.slide_menu.show_menu

# Equivalent to
App.delegate.slide_menu.showViewController App.delegate.slide_menu.menu_controller, animated: true, completion: ->(c) { true }

# Hide the menu
App.delegate.slide_menu.hide_menu

# Equivalent to
App.delegate.slide_menu.showViewController App.delegate.slide_menu.content_controller, animated: true, completion: ->(c) { true }

from promotion.

arkan avatar arkan commented on August 17, 2024

Hi @jamonholmgren,

Thanks for your answer.

I'll check it out ! :-)

from promotion.

markrickert avatar markrickert commented on August 17, 2024

I found it extremely easy to integrate https://github.com/gloubibou/HHTabListController

I liked it better than the alternatives because it auto-creates a tableview in the "hidden" views based on the titles of your view controllers. I'm planning on submitting a pull request that lets you set images for the tables as well.

My app selectively uses ProMotion, so my appdelegate doesn't inherit from ProMotion. Here's how I did it:

  1. Put source in /your_project/vendor/HHTabListController/
  2. Add this to your rakefile: app.vendor_project('vendor/HHTabListController', :static, :cflags => '-fobjc-arc')
  3. in your def application(application, didFinishLaunchingWithOptions:launch_options):
    #Build the app view controller stack
    titles = %w(Checkout Themes Settings Reports Credits)
    viewControllers = []

    titles.each do |controller|
      # Assumes your UIViewcontroller subclasses are named: "[Title]Screen"
      vc = NSClassFromString(controller + "Screen").new 

      nc = UINavigationController.alloc.initWithRootViewController(vc)
      viewControllers << nc
    end

    @viewController = HHTabListController.alloc.initWithViewControllers(viewControllers, andBackgroundImage:ThemeUtils.themeBackgroundImage)
    @window.rootViewController = @viewController

Good luck with your implementation... whichever method you choose!

Here's what mine looks like after all that:
screen shot 2013-05-22 at 11 47 32 am

from promotion.

arkan avatar arkan commented on August 17, 2024

@markrickert Thanks for your answer. :-)

from promotion.

markrickert avatar markrickert commented on August 17, 2024

You're very welcome. Good luck!

from promotion.

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.