MKDropdownMenu alternatives and similar libraries
Based on the "Menu" category.
Alternatively, view MKDropdownMenu alternatives based on common mentions on social networks and blogs.
-
PageMenu
A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram) -
SideMenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less. -
SlideMenuControllerSwift
iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift. -
CircleMenu
:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion -
GuillotineMenu
Our Guillotine Menu Transitioning Animation implemented in Swift reminds a bit of a notorious killing machine. -
BTNavigationDropdownMenu
The elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when a user clicks on the navigation title. -
PagingKit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries. -
CategorySliderView
slider view for choosing categories. add any UIView type as category item view. Fully customisable -
RadialMenu
RadialMenu is a custom control for providing a touch context menu (like iMessage recording in iOS 8) built with Swift & POP -
DTPagerController
A fully customizable container view controller to display a set of ViewControllers in a horizontal scroll view. Written in Swift. -
RHSideButtons
Library provides easy to implement variation of Android (Material Design) Floating Action Button for iOS. You can use it as your app small side menu. 🌶
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of MKDropdownMenu or a related project?
README
MKDropdownMenu
Dropdown Menu for iOS with many customizable parameters to suit any needs.
Inspired by UIPickerView.
Installation
CocoaPods
MKDropdownMenu
is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'MKDropdownMenu'
Manually
- Add
MKDropdownMenu
folder to your Xcode project. #import "MKDropdownMenu.h"
in your code.
Usage
See the example Xcode project.
Basic setup
Create 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.
MKDropdownMenu *dropdownMenu = [[MKDropdownMenu alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
dropdownMenu.dataSource = self;
dropdownMenu.delegate = self;
[self.view addSubview:dropdownMenu];
Interface Builder
You can also set up the MKDropdownMenu
in Interface Builder.
- Add a
UIView
and set its class toMKDropdownMenu
in the Identity inspector. - Connect the
dataSource
anddelegate
outlets to your view controller.
Populating the data
The MKDropdownMenuDataSource
and MKDropdownMenuDelegate
protocols APIs are inspired by the UIPickerView
interface, so most of the methods should be familiar if you used it before.
Implement the following dataSource
methods:
- (NSInteger)numberOfComponentsInDropdownMenu:(MKDropdownMenu *)dropdownMenu;
- (NSInteger)dropdownMenu:(MKDropdownMenu *)dropdownMenu numberOfRowsInComponent:(NSInteger)component;
and 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:
- (NSString *)dropdownMenu:(MKDropdownMenu *)dropdownMenu titleForComponent:(NSInteger)component;
- (NSString *)dropdownMenu:(MKDropdownMenu *)dropdownMenu titleForRow:(NSInteger)row forComponent:(NSInteger)component;
You can also provide an NSAttributedString
or custom UIView
as the display data for MKDropdownMenu
in the corresponding delegate
methods.
Customizations
The appearance and behavior of the MKDropdownMenu
can be customized by setting its property values or implementing the corresponding delegate
methods.
The default menu appearance can be customized throughout the app using the available UI_APPEARANCE_SELECTOR
properties.
Requirements
- iOS 8+
- Xcode 8+
License
MKDropdownMenu
is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the MKDropdownMenu README section above
are relevant to that project's source code only.