Comments (9)
I need too...
i got error here:
newMainViewController?.setLeftViewEnabledWithWidth(250, presentationStyle: LGSideMenuPresentationStyleScaleFromBig, alwaysVisibleOptions: 0)
?? is not convertible to void
from lgsidemenucontroller.
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.
I get same issue and I've my default initial rootVC is tabBar
from lgsidemenucontroller.
And how about opening the left view in the controller?
from lgsidemenucontroller.
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.
Added swift demo project
from lgsidemenucontroller.
any swift clean project example ?
from lgsidemenucontroller.
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.
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)
- CDN: trunk URL couldn't be downloaded
- Write storyboard
- how to make rootview with corners? HOT 3
- Thread 1: "Invalid parameter not satisfying: source" HOT 1
- LG HOT 2
- how i can push navigation controller when click at the cell in right side menu HOT 1
- how resize the rootViewController height HOT 1
- Could not create a segue of class '(null)'' HOT 5
- Issue on navigation bar image
- How to show menu when press on menu icon in navigation bar
- Show Almost always
- Getting this issue with Xcode 14.2
- Root Controller not showing HOT 1
- Error on missing files
- SwiftUI Support ?
- On iOS 15.0 or above, there is a left swipe and a flashing page on the left side
- Privacy Manifest HOT 2
- hidesBottomBarWhenPushed not woking for rootViewcontroller
- Slide menu
- iOS 18.0 Beta Crash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgsidemenucontroller.