Latest 1.0.0
Homepage https://github.com/maicki/MISDropdownViewController
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

Simple UI component that represents content as dropdown on iPhone and popover on iPad by default.

Configurable to show the content always as dropdown or as popover (iPad only) and if the dropdown should appear at the top or bottom. Automatically detects a navigation or tabbar.

MISDropdownViewController uses ARC and supports iOS 7.0+


Installing

MISDropdownViewController can be installed by CocoaPods. Simply add this line to your Podfile:

pod 'MISDropdownViewController'

And run pod install.

Or just add the files from the MISDropdownViewController folder to your project.

Usage

// Create MISDropdownViewController
MISDropdownViewController dropdownViewController = [[MISDropdownViewController alloc] initWithPresentationMode:MISDropdownViewControllerPresentationModeAutomatic];
dropdownViewController.contentView = dropdownMenuView; // Some content view

// Show and sender is UIBarButtonItem and show from top
[self.dropdownViewController presentDropdownFromBarButtonItem:sender inViewController:self position:MISDropdownViewControllerPositionTop];

// Show and sender is UIButton and show bottom
CGRect rect = [sender convertRect:[sender bounds] toView:self.view];
[dropdownViewController presentDropdownFromRect:rect inViewController:self position:MISDropdownViewControllerPositionBottom];

// Hide
[dropdownViewController dismissDropdownAnimated:YES];

Creator

Michael Schneider
@maicki

License

MISDropdownViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MISDropdownViewController",
    "version": "1.0.0",
    "summary": "Simple UI component that represents content as dropdown on iPhone and popover on iPad by default.",
    "description": "                    Simple UI component that represents the content as dropdown on iPhone and popover on iPad by default.nn                    Configurable to show the content always as dropdown or as popover (iPad only) and configure if the dropdown should appear at the top or bottom.nn                    MISDropdownViewController uses ARC and supports iOS 7.0+n",
    "homepage": "https://github.com/maicki/MISDropdownViewController",
    "license": "MIT",
    "authors": {
        "Michael Schneider": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/maicki/MISDropdownViewController.git",
        "tag": "1.0.0"
    },
    "source_files": "MISDropdownViewController",
    "public_header_files": "MISDropdownViewController/**/*.h",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This