{"id":2619,"url":"https://github.com/maxkonovalov/MKDropdownMenu","last_synced_at":"2025-08-03T00:32:19.459Z","repository":{"id":56920623,"uuid":"54339785","full_name":"maxkonovalov/MKDropdownMenu","owner":"maxkonovalov","description":"🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs","archived":false,"fork":false,"pushed_at":"2018-02-08T08:36:15.000Z","size":15084,"stargazers_count":531,"open_issues_count":14,"forks_count":83,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-04-24T14:50:38.779Z","etag":null,"topics":["dropdown","dropdown-menus","dropdownmenu","dropdowns","ios","ios-ui","objective-c","picker","xcode"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxkonovalov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-20T20:52:04.000Z","updated_at":"2024-04-02T12:29:13.000Z","dependencies_parsed_at":"2022-08-21T04:50:35.595Z","dependency_job_id":null,"html_url":"https://github.com/maxkonovalov/MKDropdownMenu","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkonovalov%2FMKDropdownMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkonovalov%2FMKDropdownMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkonovalov%2FMKDropdownMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkonovalov%2FMKDropdownMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxkonovalov","download_url":"https://codeload.github.com/maxkonovalov/MKDropdownMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228308904,"owners_count":17899773,"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":["dropdown","dropdown-menus","dropdownmenu","dropdowns","ios","ios-ui","objective-c","picker","xcode"],"created_at":"2024-01-05T20:16:18.494Z","updated_at":"2024-12-06T18:30:38.938Z","avatar_url":"https://github.com/maxkonovalov.png","language":"Objective-C","readme":"# MKDropdownMenu\n\n[![Build Status](https://travis-ci.org/maxkonovalov/MKDropdownMenu.svg?branch=master\u0026style=flat)](https://travis-ci.org/maxkonovalov/MKDropdownMenu)\n[![Version](https://img.shields.io/cocoapods/v/MKDropdownMenu.svg?style=flat)](http://cocoapods.org/pods/MKDropdownMenu)\n[![License](https://img.shields.io/cocoapods/l/MKDropdownMenu.svg?style=flat)](http://cocoapods.org/pods/MKDropdownMenu)\n[![Platform](https://img.shields.io/cocoapods/p/MKDropdownMenu.svg?style=flat)](http://cocoapods.org/pods/MKDropdownMenu)\n\nDropdown Menu for iOS with many customizable parameters to suit any needs.\n\nInspired by UIPickerView.\n\n\u003cimg src=\"Screenshots/MKDropdownMenu.png?raw=true\" alt=\"MKDropdownMenu\" width=320\u003e\n\u003cimg src=\"Screenshots/MKDropdownMenu.gif?raw=true\" alt=\"MKDropdownMenu\" width=320\u003e\n\n## Installation\n### CocoaPods\n\n`MKDropdownMenu` is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'MKDropdownMenu'\n```\n\n### Manually\n\n- Add `MKDropdownMenu` folder to your Xcode project.\n- `#import \"MKDropdownMenu.h\"` in your code.\n\n## Usage\nSee the example Xcode project.\n\n### Basic setup\n\nCreate the `MKDropdownMenu` instance and add it as a subview to your view. Set the `dataSource` and `delegate` properties to your view controller implementing `MKDropdownMenuDataSource` and `MKDropdownMenuDelegate` protocols.\n\n```objc\nMKDropdownMenu *dropdownMenu = [[MKDropdownMenu alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];\ndropdownMenu.dataSource = self;\ndropdownMenu.delegate = self;\n[self.view addSubview:dropdownMenu];\n```\n\n### Interface Builder\n\nYou can also set up the `MKDropdownMenu` in Interface Builder.\n\n- Add a `UIView` and set its class to `MKDropdownMenu` in the Identity inspector.\n- Connect the `dataSource` and `delegate` outlets to your view controller.\n\n### Populating the data\n\nThe `MKDropdownMenuDataSource` and `MKDropdownMenuDelegate` protocols APIs are inspired by the `UIPickerView` interface, so most of the methods should be familiar if you used it before.\n\nImplement the following `dataSource` methods:\n\n```objc\n- (NSInteger)numberOfComponentsInDropdownMenu:(MKDropdownMenu *)dropdownMenu;\n- (NSInteger)dropdownMenu:(MKDropdownMenu *)dropdownMenu numberOfRowsInComponent:(NSInteger)component;\n```\n\nand the `delegate` methods that suit your needs. The most simple way to get started is to provide the titles for the header components and the rows in the following `delagate` methods:\n\n```objc\n- (NSString *)dropdownMenu:(MKDropdownMenu *)dropdownMenu titleForComponent:(NSInteger)component;\n- (NSString *)dropdownMenu:(MKDropdownMenu *)dropdownMenu titleForRow:(NSInteger)row forComponent:(NSInteger)component;\n```\n\nYou can also provide an `NSAttributedString` or custom `UIView` as the display data for `MKDropdownMenu` in the corresponding `delegate` methods.\n\n### Customizations\n\nThe appearance and behavior of the `MKDropdownMenu` can be customized by setting its property values or implementing the corresponding `delegate` methods.\n\nThe default menu appearance can be customized throughout the app using the available `UI_APPEARANCE_SELECTOR` properties.\n\n\n## Requirements\n- iOS 8+\n- Xcode 8+\n\n## License\n`MKDropdownMenu` is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["UI"],"sub_categories":["Menu","Layout","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkonovalov%2FMKDropdownMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxkonovalov%2FMKDropdownMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkonovalov%2FMKDropdownMenu/lists"}