Latest 1.0.2
Homepage https://github.com/ForAllKid/FKCostomPresentationController
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

FKCostomPresentationController

ScreenShot

image

Decription

A custom PresentationController for iOS platform

Features

  • easy to use

How to use:

See Demo Project


- (IBAction)normalPresent:(UIButton *)sender {

    NextViewController *controller = [NextViewController new];

    [self customDirectionalPresentViewController:controller animated:YES];

}

- (IBAction)RoundPresent:(UIButton *)sender {

    CGFloat corner = [self.textField.text floatValue];

    NextViewController *controller = [NextViewController new];

    [self customDirectionalPresentViewController:controller cornerRadius:corner animated:YES];

}

- (IBAction)fadePresent:(UIButton *)sender {

    NextViewController *controller = [NextViewController new];

    [self customFadedPresentViewController:controller animated:YES];

}

Download or clone to see more use~

Note

If you want to present a view controller which is not full screen (like screenshot shown), you need set the controller’s contentSize like

    self.preferredContentSize = CGSizeMake(100.f, 100.f);

or override the function


- (CGSize)preferredContentSize {
    CGSize screenSize = [UIScreen mainScreen].bounds.size;
    return CGSizeMake(screenSize.width, screenSize.height/2.f);
}

Installation

pod 'FKCustomPresentationController'

Requirements

iOS8 or later

Next

will support gestureRecognizer control

License

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

Latest podspec

{
    "name": "FKCustomPresentationController",
    "version": "1.0.2",
    "summary": "A PresentationController for iOS",
    "homepage": "https://github.com/ForAllKid/FKCostomPresentationController",
    "license": "MIT",
    "authors": {
        "ForKid": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ForAllKid/FKCostomPresentationController.git",
        "tag": "v1.0.2"
    },
    "source_files": "FKCustomPresentationController/FKPresentationController/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This