Giter Site home page Giter Site logo

vicpenap / vppdropdown Goto Github PK

View Code? Open in Web Editor NEW
204.0 204.0 36.0 378 KB

VPPDropDown is an iOS library that allows you to create dropdown-like menus in a table view, as seen in old Twitter 3 for iPhone.

Home Page: http://vicpenap.github.com/VPPDropDown

License: Other

Objective-C 100.00%

vppdropdown's People

Contributors

vicpenap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vppdropdown's Issues

If >1 dropdown, when you open one, close the others

Hello,

  1. THANKS for the good code :) Really helpful.

  2. If you have more than one dropDown in the tableView, how can you "collapse" the other open dropdowns when you open a new one.

  3. Once more, Thanks! :)

With regards,
Bilal

Not works with ARC

Hello,

When I load the plugin it telle me that release and others forbidden in ARC …...

Thanks

Not able to change color & size or dropdown lis

I tried calling

  • (UITableViewCell *) dropDown:(VPPDropDown *)dropDown cellForElement:(VPPDropDownElement *)element atGlobalIndexPath:(NSIndexPath *)globalIndexPath{
    UITableViewCell *cell = [dropDown.delegate dropDown:dropDown cellForElement:element atGlobalIndexPath:globalIndexPath];

    NSLog([cell.textLabel.textColor description]);
    cell.textLabel.textColor = [UIColor greenColor];
    NSLog([cell.textLabel.textColor description]);

    return cell;
    }

with the moto that that I will get inside this function for every element of the cell and then from their I will be able to change the color of the text but I am not able to do so.

Plz help me out with this.

Potential bug in demo?

Hello. Thank you for this library, currently using in one app prototyping — saved me some mind)

I'm having this kind of structure: 1st section — 1 regular row, 2nd section — regular row, then dropdown, then regular again.
So what I found is that when I expand dropdown "row" variable https://github.com/vicpenap/VPPDropDown/blob/master/VPPDropDownExample/DropDownExample.m#L213 becomes negative, so my labels are messed up. I'm in a hurry with this prototype, so I didn't go much into details, just set it back to 0 if it's negative — works in my particular case.

Contract expanded cells on selection?

Victor,

It's probably trivial to do, but I'd like to contract cells when using VPPDropDownTypeSelection when the user selects one of the expanded cells.

Can you advise me as to where and how to do this?

Thanx you so much for the code you put up here. (I'm learning a ton from folks like you).

Storyboard

Hello, thanks for the code. I'm somewhat new to GitHub and I might have missed something, but is there any way to use this with a storyboard? I can't seem to get it to work.

Thanks.

Method deprecated in iOS 9.0

- (BOOL)containsRelativeIndexPath:(NSIndexPath *)relativeIndexPath;
This method has been deprecated,Please provide new release with the updated methods.

License

Awesome component! Any chance you could add a license to it? Preferably MIT, Apache 2.0 or BSD? :)

how can I have multiple number of Selection Dropdown

I need to have multiple number of dropdowns for particular Selection type, the number of sections and rows are gonna be sent from the API, and even if I initialize the dropdown
its not working , as only a single dropdown is being seen

this is my code, however only the last element is being seen in the table view
NSArray *tempKeys=[filterDictionary allKeys];

for (int i=0;i<[tempKeys count];i++) {

    NSString *section=[tempKeys objectAtIndex:i];
    NSArray *arr=[filterDictionary valueForKey:section];

VPPDropDown *  vppdropDown = [[VPPDropDown alloc] initSelectionWithTitle:section
                                                           tableView:self.tableView
                                                           indexPath:[NSIndexPath indexPathForRow:kRowDropDownSelection inSection:kSection1]
                                                            delegate:self
                                                       selectedIndex:1
                                                       elementTitles:arr];


}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.