Comments (5)
I am facing same issue..Did u solve this issue?
from slidemenucontrollerswift.
@salramkotha, sorry to get to you late. If you're still having the problem, I believe I managed to fix it by inserting
dispatch_async(dispatch_get_main_queue(), {
let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
appDelegate.createMenuView()
})
inside my LogInViewController.swift's if (success for login condition) { }
check, immediately after dismissing the view controller (also within the if block). It might be messy or non-ideal, but it gets the job done.
from slidemenucontrollerswift.
in app delegate createmenuview() can u share code of create menu view I am using view in view controller how to activate that viewcontroller?
from slidemenucontrollerswift.
func createMenuView() {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let leftViewController = storyboard.instantiateViewControllerWithIdentifier("LeftViewController") as! LeftViewController
let tableViewController = storyboard.instantiateViewControllerWithIdentifier("TableViewController") as! TableViewController
let nvc: UINavigationController = UINavigationController(rootViewController: tableViewController)
leftViewController.homeViewController = nvc
let slideMenuController = SlideMenuController(mainViewController: nvc, leftMenuViewController: leftViewController) // SlideMenuController.mainViewController is the entry point.
self.window?.rootViewController = slideMenuController
self.window?.makeKeyAndVisible()
}
It should be roughly the same as what's given by dekatotoro, except with a navigationController containing the tableViewController. So the first parameter of SlideMenuController is that navigationController.
from slidemenucontrollerswift.
Thank you. will try this :)
from slidemenucontrollerswift.
Related Issues (20)
- I want to customise LeftMenuViewcontoller width. HOT 1
- there is a error while open left and right menu and remain some parts of main screen
- Could not build Objective-C module 'SlideMenuControllerSwift' HOT 3
- Shows a black screen and not able to access the functionalities
- Want to close menu when i tap on outside of UITableView in SlideMenuControllerSwift HOT 1
- SlideMenu blocks prefersHomeIndicatorAutoHidden
- iOS 13, pan gesture freezes app HOT 1
- Can we handle starching the Slide Menu
- Project Abandoned?
- Please update SlideMenuControllerSwift to latest version of Swift 5.1 HOT 2
- Status bar issue in iOS13 HOT 5
- In Swift 4.2 shows warning 'fabs' is deprecated: renamed to 'abs'
- I can't change side menu name in if else statement
- how to side status bar in xcode 11.4.1 while left menu appearing
- iOS - No such module SlideMenuControllerSwift HOT 2
- Scroll tableview inside SlideMenuControllerSwift
- Not load the leftViewcontroller page after return Appdelegate
- xcode 12 compatibility
- Provide An API for detecting whether the slideMenu is opened or closed. HOT 1
- Can I use the QR code directly?
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 slidemenucontrollerswift.