Latest 0.2.2
Homepage https://github.com/masahikot/MSTDropDownPresentationController
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

[CI Status](https://travis-ci.org/Masahiko Tsujita/MSTDropDownPresentationController)
Version
License
Platform

Overview

A Drop Down Presentation Controller like Tweetbot 3‘s Timeline/Lists switcher.

Requirements

iOS 8 & iOS SDK 8.0 and later.

Installation

MSTDropDownPresentationController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MSTDropDownPresentationController"

Usage

Using UIViewControllerTransitioningDelegate

First, adopt UIViewControllerTransitioningDelegate

- (UIPresentationController *)presentationControllerForPresentedViewController:(UIViewController *)presented presentingViewController:(UIViewController *)presenting sourceViewController:(UIViewController *)source {
    return [[MSTDropDownPresentationController alloc] initWithPresentedViewController:presented presentingViewController:presenting];
}

- (id <UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source {
    return [[MSTDropDownAnimationController alloc] init];
}

- (id <UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed {
    return [[MSTDropDownAnimationController alloc] init];
}

Second, present view controller with custom presentation

viewController.modalPresentationStyle = UIModalPresentationCustom;
viewController.transitioningDelegate = self;
[self presentViewController:viewController animated:YES completion:NULL];

Or, You can get simply Delegate Object as follows:

viewController.transitioningDelegate = self.mst_dropDownTransitioningDelegate;

Or, You can also use Custom Storyboard Segue Class

Select "Custom" Segue and specify MSTDropDownStoryboardSegue for Segue Class.

License

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

Latest podspec

{
    "name": "MSTDropDownPresentationController",
    "version": "0.2.2",
    "summary": "A Drop Down Presentation Controller like Tweetbot 3's Timeline/Lists switcher.",
    "description": "                       A Drop Down Presentation Controller like Tweetbot 3's Timeline/Lists switcher.nn                       * Enables beautiful drop down view controller presentation.n                       * Subclass of UIPresentationController. Easy to use, Highly compatibility with UIKit.n                       * Requires iOS 8 and later.n",
    "homepage": "https://github.com/masahikot/MSTDropDownPresentationController",
    "license": "MIT",
    "authors": {
        "Masahiko Tsujita": "[email protected]"
    },
    "source": {
        "git": "https://github.com/masahikot/MSTDropDownPresentationController.git",
        "tag": "0.2.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resource_bundles": {
        "MSTDropDownPresentationController": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This