Latest 1.0
Homepage https://github.com/dai-jing/UIViewController-KBDropdownController
License MIT
Platforms ios 7.0, requires ARC
Authors

UIViewController-KBDropdownController

License

Simple UIViewController category to present custom dropdown controller.

Introduction

Present dropdown controller needs lots of works to deal with child view controller and animations. This UIViewController category make this simple to deal with and has a smooth spring animation and a black dim view with alpha value.

Screenshots

KBDropdownControllerDemo1

CocoaPods – Try it yourself

pod 'UIViewController+KBDropdownController'

Example

import this category
#import <UIViewController+KeyboardAnimation.h>

Make your button selector like this:

- (void)dropdownButtonClicked:(id)sender
{
    UIButton *button = (UIButton *)sender;
    if (button.tag == kFoldButton) {
        [self presentDropdownController:self.dropdownVC dropdownHeight:300 foldButton:button springAnimation:YES];
    } else if (button.tag == kUnfoldButton) {
        [self dismissDropdownController:self.dropdownVC dropdownHeight:300 foldButton:button];
    }
}

Latest podspec

{
    "name": "UIViewController+KBDropdownController",
    "version": "1.0",
    "summary": "UIViewController category to present custom dropdown controller",
    "homepage": "https://github.com/dai-jing/UIViewController-KBDropdownController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jing Dai": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/dai-jing/UIViewController-KBDropdownController.git",
        "branch": "master",
        "tag": "1.0"
    },
    "source_files": "*.{h,m}",
    "public_header_files": "*.h"
}

Pin It on Pinterest

Share This