{"id":18270876,"url":"https://github.com/vicpenap/VPPDropDown","last_synced_at":"2025-04-05T01:30:54.112Z","repository":{"id":56925720,"uuid":"3257219","full_name":"vicpenap/VPPDropDown","owner":"vicpenap","description":"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.","archived":false,"fork":false,"pushed_at":"2012-11-29T21:43:32.000Z","size":378,"stargazers_count":204,"open_issues_count":6,"forks_count":36,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-04T19:24:01.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://vicpenap.github.com/VPPDropDown","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicpenap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-24T16:08:20.000Z","updated_at":"2024-06-13T09:48:25.000Z","dependencies_parsed_at":"2022-08-21T05:20:50.725Z","dependency_job_id":null,"html_url":"https://github.com/vicpenap/VPPDropDown","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FVPPDropDown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FVPPDropDown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FVPPDropDown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicpenap%2FVPPDropDown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicpenap","download_url":"https://codeload.github.com/vicpenap/VPPDropDown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:38:55.297Z","updated_at":"2025-04-05T01:30:53.633Z","avatar_url":"https://github.com/vicpenap.png","language":"Objective-C","readme":"# VPPDropDown 0.3.0\n\nVPPDropDown is an iOS library that allows you to create dropdown-like menus\nin a table view, as seen in old Twitter 3 for iPhone. \n\nYou can create three kinds of dropdown menus:\n \n- Disclosure, childs of drop down cell are treated as disclosure cells, \nuseful for grouping detailed view controllers.\n- Selection, childs of drop down cell are treated as selection cells, \nuseful for editing preferences.\n- Custom, childs of drop down cell should be decorated by the delegate.\n \nThis project contains a sample application using it. Just open the project in \nXCode, build it and run it. \n\n\nFor full documentation check out \nhttp://vicpenap.github.com/VPPDropDown\n\n## Using the component\n\nFirst create a dropdown instance with any constructor. For example:\n\n\t[[VPPDropDown alloc] initSelectionWithTitle:@\"Selection Combo\"\n                                          tableView:self.tableView\n                                          indexPath:[NSIndexPath indexPathForRow:kRowDropDownSelection inSection:kSection1] \n                                           delegate:self \n                                      selectedIndex:1\n                                      elementTitles:@\"Option 1\", @\"Option 2\", @\"Option 3\", nil];\n\nNow, fill your table view data source and delegate for example as follows:\n\n\t- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section\n\t{\n\t\t// Return the number of rows in the section.\n\t\tint rows = [VPPDropDown tableView:tableView numberOfExpandedRowsInSection:section];\n\t\tswitch (section) {\n\t\t\tcase kSection1:\n\t\t\t\trows += kNumberOfRowsInSection1;\n\t\t\t\tbreak;\n\t\t\tcase kSection2:\n\t\t\t\trows += kNumberOfRowsInSection2;\n\t\t\t\tbreak;\n\n    \t\t}\n    \t\treturn rows;\n\t}\n\nWhere `kNumberOfRowsInSection1` and `kNumberOfRowsInSection2` indicate the \namount of rows for those sections, without taking into account if the dropdowns\nare expanded or not.\n\n\t- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath\n\t{\n\t\t...\n\t\t\n\t\tif ([VPPDropDown tableView:tableView dropdownsContainIndexPath:indexPath]) {\n\t\t\treturn [VPPDropDown tableView:tableView cellForRowAtIndexPath:indexPath];\n\t\t}\n\t\t\n\t\t...\n\t}\n\nAnd the delegate:\n\n\t- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath\n\t{\n\t\t...\n\t\t\n\t\tif ([VPPDropDown tableView:tableView dropdownsContainIndexPath:indexPath]) {\n\t\t\t[VPPDropDown tableView:tableView didSelectRowAtIndexPath:indexPath];\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t...\n\t}\n\nNow implement `VPPDropDownDelegate` and you're done!\n\nRead the included example app for full information.\n\n\n## Screenshots \n\n![](https://github.com/vicpenap/VPPDropDown/raw/master/screenshot.png)\n\n## Changelog\n\n- 2012/02/08 (0.3.0)\n\t- Added ability to modify some dropdown status' properties, \nsuch as expanded or selectedIndex.\n\t- Added height method to be able to change the row's height\naccording to the associated dropdown's element.\n- 2012/02/08 (0.2.2)\n\t- Fixed a bug that caused a crash when the first dropdown cell \nwas not the first cell on its section. \n- 2012/02/08 (0.2.1)\n\t- Fixed a bug when adding new dropdown to an indexPath that \nwas already used. \n- 2012/02/04 (0.2.0)\n\t- Added intelligent scrolling when expanding dropdowns.\n\t- Deprecated all methods using relative index paths.\n- 2011/01/24 (0.1.0)\n\t- Initial release.\n\n## License \n\nCopyright (c) 2012 Víctor Pena Placer ([@vicpenap](http://www.twitter.com/vicpenap))\nhttp://www.victorpena.es/\n\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicpenap%2FVPPDropDown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicpenap%2FVPPDropDown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicpenap%2FVPPDropDown/lists"}