jvillella / jvfloatingdrawer Goto Github PK
View Code? Open in Web Editor NEWAn easy to use floating drawer view controller.
License: MIT License
An easy to use floating drawer view controller.
License: MIT License
I'm having an issue calling this in a presentviewcontroller. I want the main view to resume after a user logs in but nothing happens:
SideViewController *about = [AppDelegate globalDelegate].drawerViewController;
[self presentViewController:about animated:YES completion:nil];
SideViewController being a subclass of JVFloatingDrawerViewController!
Hi,
Is it possible to add TabbarController as center view ?
Hello, I'm sorry, my English is not very good.When I left click on the button in the animation view, middle view current effect is highly indentation, is there any way to set the height of the intermediate view is not change
Dear Julian:
in centerViewController,
how to tabelview reloadData of rightDrawerViewController?
Thank you very much. ^^
Damon.
Would it be possible to have a pan gesture, to swipe right on the main view to open the drawer? Like in the stock Messages app, when in a message, you can swipe from the left of the screen to get back to the main view.
The following code is called in the JVFloatingDrawerViewController
.
- (void)actionCenterViewContainerTapped:(id)sender {
[self closeDrawerWithSide:self.currentlyOpenedSide animated:YES completion:nil];
}
YES
has been hardcoded. This needs to be fixed so the user has control.
Would be great to see an example swift project.
How to use with Storyboard?
If the device receives a call (or other action which causes the status bar to extend) and the user opens the hidden menu and then changes to another controller, the result is that the extended status bar overlaps the navigation bar of the displayed view controller.
This behaviour was reported by https://github.com/yumsmools on KyleGoddard/KGFloatingDrawer and the issue affects both libraries.
When building the example program for any of our iPhone devices physical or simulated, the example app works as expected.
When the example application is built in both the iPad simulator as well as on our iPad and iPad mini for iOS 8 on Xcode, if the user selects "left menu" the background of the view is Sky, but instead of the menu with the 2 icons on it there is only a blank white box. Touches where the menu items should be on the white box take you to the expected new views.
Hi,
We're developing an app to support 10 languages including arabic. We just notice that when we switch the phone to arabic the menu doesn't show at all. We know that in the arabic language its from right to left but the menu isn't even right. Any idea?
Thank you
Simo
HI,
I am trying to implement the same without storyboard (i.e coded in the View Controller Directly). The Drawer doesn't seem to open up. Could you help me ?
Hey thanks for this, looks really great. Was wondering how I tell which view is being displayed though as viewDidLoad is called when the drawerViewController is first made. ViewDidAppear is also run on first instance, so is there another method like drawerDidClose or CentreViewIsShowing or something that I can use to tell which view is currently being displayed?
Tapping on the status bar on the center view should scroll that view to the top.
When adding JVFloatingDrawer as the rootViewController it blocks this and scroll to top is no longer accepted
Any way to use a different root view controller other than JVFloatingDrawerViewController?
e.g., a login view pushing a drawer controller on event
Have a weird issue when trying to toggle the left (or right) drawer where nothing happens except that the center view controller suddenly has barely noticeable rounded corners.
Here is my setup:
App Delegate
if let centerViewController = UIStoryboard(name: "Main", bundle: nil).instantiateInitialViewController() as? UINavigationController, let menuViewController = UIStoryboard(name: "Menu", bundle: nil).instantiateInitialViewController() as? MenuViewController {
let drawerViewController = JVFloatingDrawerViewController()
drawerViewController.leftViewController = menuViewController
drawerViewController.centerViewController = centerViewController
UIApplication.sharedApplication().keyWindow?.rootViewController = drawerViewController
}
Root View (current Center):
@IBAction func didTapMenuBarButtonItem(sender: UIBarButtonItem) {
if let drawerViewController = parentViewController?.parentViewController as? JVFloatingDrawerViewController {
drawerViewController.toggleDrawerWithSide(JVFloatingDrawerSide.Left, animated:true, completion:nil)
}
}
Yes, the drawerViewController is properly called using ' parentViewController?.parentViewController' (I made sure by just setting the new center to the menuViewController and it works without a problem).
Yes, I tried just called 'openDrawer...' instead of toggle.
Any suggestions?
Also, no I cannot use the Swift version of this library (KGFloatingDrawer) as it requires 'use_frameworks!' in the pod file and right now that breaks Travis CI automated builds.
I am showing the selected/highlighted table view cell of left drawer using setSelected/setHighlighted methods and overriding cell views. The first item in left drawer is Home and last item is Settings.
I tap Login button and segue to Login screen. On Login screen, instead of login I choose to go back to Settings. When I tap on the menu to activate drawer, I see first cell (Home) of left drawer table view selected instead of the last one (Settings). However the application is still showing Settings view controller. Please help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.