nmattisson / dropdownmenu Goto Github PK
View Code? Open in Web Editor NEWDropdownMenu is an iOS navigation controller using a Container View, storyboards and segues.
License: MIT License
DropdownMenu is an iOS navigation controller using a Container View, storyboards and segues.
License: MIT License
Question above :)
This control throw exception when run on iOS 6.
+[UIView animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:]: unrecognized selector sent to class 0x155bdbc
Please fix it soon!
Hey! Amazing control. Very useful for many types of apps.
I was wondering about something that could help me a lot. If I select a child view controller(let's say A) for the container, and then I select another view controller(let's say B), I would like to know if it's possible to return to the same view controller A(using the menu) without creating a new view controller. Basically, every time I move from one view to another using the menu, a new controller appears and the old one is released. I found the DropdownMenuSegue class but because I'm quite new to objective C, I don't know how to preserve my view controllers. I need to keep them because my view controllers are in fact navigation controllers and I wouldn't like to lose the current view when I select a menu item and then come back.
Help would be much appreciated. Thanks!
Is there a way to have the menu slide up instead of down? In my case I need the menu button to be on the bottom of the screen and have the menu slide up.
Thank you for a great control.
Do you have successful experience with using this Navigation Controller?
What if I wanted to have one of the views, say Profile, to have a button that segues into another view controller?
As of now such a concept is not possible with this project. Any chance you are currently working on that?
Why are the functions in DropdownMenuController.m on lines 67-91 there? What is their purpose?
So i have setup the menu without effort but now i wanna call another view from inside one of the menu views and i am calling either one and not been able to show anything:
[self showViewController:replay sender:self];
or
[self presentViewController:replay animated:YES completion:nil];
Any ideas on how to do that?
not Fount with UIBarButtonItem?
Thxs
I'm new to iOS development but would like to try this awesome navigation controller.
So my question is - do I need manually make MyViewController inside my app the same as in example (https://github.com/nmattisson/DropdownMenu/tree/master/DropdownMenu-Example) while adding all these stuff to my storyboard?
@nmattisson, I think it is fine if I create a Swift version of this repository, but I thought I would ask first.
I'm having a problem where the container view seems to be blocking the buttons in the drop down menu from being clickable. If I reduce the top size of the container view way down the buttons then are able to receive touch events but this is different from the intended design. Does anybody have a fix for this?
The menu shows up just fine and works great on an iPhone 5, but the buttons aren't clickable on the 6 or on an iPad. Has this happened to you? I can't figure out why this happens.
I use this with a container view to segue between three different collection views. I want to hide the Drop down menu you when scroll up on any of my collection views, and show the dropdown menu when you scroll down? is this possible?
How do I create the viewcontrollers dynamically in the container view ? Any help appreciated.
I noticed in the demo that it doesn't see to handle landscape mode that well. Any idea if there is a work around for this ?
nice menu!
thanks.
I'm getting errors when running pod update on my project. Looks like this is now trying to pull in another library when using pod 'DropdownMenu' which is a Swift implementation and seems altogether a different library.
Just wondering if this control will work if you don't use Storyboards...
Was trying to open the menu with this piece of code:
MyDropdownMenuController *menu = (MyDropdownMenuController *) [self parentViewController];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(0, 0, 30, 15);
[button setImage:[UIImage imageNamed:@"lines"] forState:UIControlStateNormal];
[button addTarget:menu action:@selector(menuButtonAction:) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithCustomView:button];
[self.navigationItem setLeftBarButtonItem:barButton];
But it gave me this error: [UINavigationController menuButtonAction:]: unrecognized selector sent to instance
Is there any recommended way to have the content in the view get 'pushed down' by the menu as it opens rather than getting covered? I guess it would be akin to a drawer. Thoughts?
I added the files to my project manually, and I get an issue warning in 'DropdownMenuController.m' in the offset method on line 194 saying "'interfaceOrientation' is deprecated: first deprecated in iOS 8.0 ", what do I use instead?
-(CGFloat)offset {
return UIInterfaceOrientationIsLandscape(self.interfaceOrientation) ? 20.0f : 0.0f;
} ^Error here
I'm stuck with the problem that might be easy to fix. I use DropdownMenu which leads to Table View Controller and want to present detail view controller while clicking on table cell, e.g. screenshot:
Unfortunately while clicking on table cell I get an exception:
Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[LSExploreTableViewController currentViewController]:
unrecognized selector sent to instance 0x11e2b2c0'
Does DropdownMenu cope with nested view controllers, as navigation controller for example?
[!] The platform of the target Pods
(iOS 4.3) is not compatible with DropdownMenu (1.0.0)
which has a minimum requirement of iOS 5.0.
Hey! This is an amazing control but it's really disappointing how you can't use it with UINavigationController... Is there any way I can use UINavigationController with this control?
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.