Giter Club home page Giter Club logo

Comments (9)

paulocoutinhox avatar paulocoutinhox commented on August 28, 2024

I need too...

i got error here:
newMainViewController?.setLeftViewEnabledWithWidth(250, presentationStyle: LGSideMenuPresentationStyleScaleFromBig, alwaysVisibleOptions: 0)

?? is not convertible to void

from lgsidemenucontroller.

paulocoutinhox avatar paulocoutinhox commented on August 28, 2024

Done!

Do it with swift in your AppDelegate:

var window: UIWindow?
var mainViewController: LGSideMenuController?
var rearViewController: SideMenuViewController?
var frontViewController: ProductListViewController?
var frontNavigationController: UINavigationController?

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    window = UIWindow(frame: UIScreen.mainScreen().bounds)
    window?.tintColor = UIColor.whitecolor()

    frontViewController = ProductListViewController()
    frontNavigationController = UINavigationController(rootViewController: frontViewController!)

    rearViewController = SideMenuViewController()

    mainViewController = LGSideMenuController(rootViewController: frontNavigationController)
    mainViewController?.setLeftViewEnabledWithWidth(250, presentationStyle: LGSideMenuPresentationStyleScaleFromBig, alwaysVisibleOptions: LGSideMenuAlwaysVisibleOnNone)
    mainViewController?.leftView().addSubview(rearViewController!.view!)

    if let window = window {
        window.backgroundColor = UIColor.whiteColor()
        window.makeKeyAndVisible()
        window.rootViewController = mainViewController
    }

    return true
}

Change ProductListViewController to your first ViewController that will appear.

from lgsidemenucontroller.

chlebta avatar chlebta commented on August 28, 2024

I get same issue and I've my default initial rootVC is tabBar

from lgsidemenucontroller.

FreshApps avatar FreshApps commented on August 28, 2024

And how about opening the left view in the controller?

from lgsidemenucontroller.

pattogato avatar pattogato commented on August 28, 2024

With swift 2.2 the code above doesn't work. I got an error with:

/Volumes/Dev/Documents/iOS dev/Projects/EPG/Source/epg_jo/epg/EPG/UI/ViewControllers/MainMenuViewController.swift:66:60: Use of unresolved identifier 'LGSideMenuPresentationStyleScaleFromBig'

from lgsidemenucontroller.

Coledunsby avatar Coledunsby commented on August 28, 2024

Added swift demo project

from lgsidemenucontroller.

ahmadsallam avatar ahmadsallam commented on August 28, 2024

any swift clean project example ?

from lgsidemenucontroller.

pattogato avatar pattogato commented on August 28, 2024

I don't have it sorry :/

2016-09-26 14:57 GMT+02:00 Ahmad [email protected]:

any swift clean project example ?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADxJ8jf2ruK74muNTIX4SQsZxBjWiMayks5qt8EngaJpZM4Fxpxf
.

ÜdvözlettelPattogató Bence

from lgsidemenucontroller.

ahmadsallam avatar ahmadsallam commented on August 28, 2024

any alternative ?

On Sep 26, 2016, at 4:00 PM, pattogato [email protected] wrote:

I don't have it sorry :/

2016-09-26 14:57 GMT+02:00 Ahmad [email protected]:

any swift clean project example ?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADxJ8jf2ruK74muNTIX4SQsZxBjWiMayks5qt8EngaJpZM4Fxpxf
.

ÜdvözlettelPattogató Bence

You are receiving this because you commented.
Reply to this email directly, view it on GitHub #8 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AJnhYRpFM4qQMIsDmvU0H7jrmNSXhs-Qks5qt8HjgaJpZM4Fxpxf.

from lgsidemenucontroller.

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.