Latest 1.0.0
Homepage https://github.com/dengshunlai/DSLTransition
License MIT
Platforms ios 8.0, requires ARC
Authors

自定义UIViewController的present转场

使用:

#import "UIViewController+DSLTransition.h"

NextViewController *vc = [[NextViewController alloc] init];
//设置转场类型,0是系统默认的转场
vc.dsl_transitionType = 1;
//present方法不变
[self presentViewController:vc animated:YES completion:nil];
//dismiss方法不变
[self dismissViewControllerAnimated:YES completion:nil];

其他参数设置详见Demo

支持cocoapods

pod ‘DSLTransition’

Latest podspec

{
    "name": "DSLTransition",
    "version": "1.0.0",
    "summary": "u591au79cdu81eau5b9au4e49presentu8f6cu573auff0cu6548u679cu5b9eu7528uff0cu4f7fu7528u65b9u4fbf",
    "homepage": "https://github.com/dengshunlai/DSLTransition",
    "license": "MIT",
    "authors": {
        "u9093u987au6765": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/dengshunlai/DSLTransition.git",
        "tag": "v1.0.0"
    },
    "source_files": "DSLTransition/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This