bijeshnair / nidropdown Goto Github PK
View Code? Open in Web Editor NEWNiDropDown gives a proper animated drop down menu like effect.
License: MIT License
NiDropDown gives a proper animated drop down menu like effect.
License: MIT License
While selecting row from tableview it gives output for another index. Using same code in different controllers one is working fine another don't.
Thanks in advance..!!
Please update the latest demo
I can't hit the UITabelView when some others controls below it.
thank you in advance
Is there a way to close the menu when a user taps outside of the list?
Thank you.
it will lose the background image when i set up the button background image.
you’re remove all images in subviews ,include backgroud image
:
//下拉菜单支持图标,如果有图标的话,先删除图标,然后加载选择项的图标
//但是,如果button有背景图片的话,这里也将会删除背景图片
for (UIView *subview in btnSender.subviews) {
if ([subview isKindOfClass:[UIImageView class]]) {
//修复:重置按钮时,会删除设置的背景图片
UIImageView * thisImageView = (UIImageView *)subview;
if (![thisImageView.image isEqual:[btnSender backgroundImageForState:UIControlStateNormal]]) {
[subview removeFromSuperview];
}
}
}
Would be awesome if you could build in functionality to allow uses to click outside of the drop down like a popup view to close it.
I have my button inside stackview and tried clicking it, drop down menu shows behind the other UI elements I have below the button. Any fix?
Thanks,
Rahman.
self.table = [super init];
this causes major problems
I can't hit the UITabelView when some others controls below it.
2013-03-15 09:52:47.304 NIDropDown[13870:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Requesting the window of a view (<NIDropDown: 0x753f870; frame = (0 0; 0 0); transform = [0, 0, 0, 0, 0, 0]; alpha = 0; opaque = NO; layer = (null)>) with a nil layer. This view probably hasn't received initWithFrame: or initWithCoder:.'
*** First throw call stack:
(0x1c95012 0x10d2e7e 0x1c94deb 0x602fc 0x62567 0x68af4 0x60eed 0x3047 0x4611 0x10e6705 0x1d920 0x1d8b8 0xde671 0xdebcf 0xddd38 0x4d33f 0x4d552 0x2b3aa 0x1ccf8 0x1bf0df9 0x1bf0ad0 0x1c0abf5 0x1c0a962 0x1c3bbb6 0x1c3af44 0x1c3ae1b 0x1bef7e3 0x1bef668 0x1a65c 0x1ebd 0x1de5)
libc++abi.dylib: terminate called throwing an exception
Hi There
Great control.
I have four dropdowns listed, the 4th one as example, you have to click it 3 additional times in order to get to the 4th listing.
Same goes for 3, but one less selection, then 2 etc.
Any help would be appreciated.
Iain
Is it possible to upgrade the project to be ARC Compatible. Love the work and effort that has gone into this.
change stub to:
then when you instantiate it:
dropDown = [NIDropDown new];
dropDown = [dropDown showDropDown:sender theHeight:&f theArr:arr theImgArr:arrImage theDirection:@"down"];
@Property (nonatomic, assign) id delegate;
Would be cool to all the user to specify if the drop down can be drop down or drop up as sometimes buttons are placed on the bottom of the screen and there is not enough space to drop down...
Think this might be a duplicate...
Would be cool if this could happen.
I know you use a programmatically generated UITable to create the drop down but easily exposing the methods would maje it much more user friendly. :)
Keep the good work up. I know I will be using this much more.
How can I change the animation direction ?
I am trying to make this upward.. Like http://s3.amazonaws.com/cocoacontrols_production/ios_screens/160/full.png?1304537631
Thanks
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.