Latest 0.1.0
Homepage https://github.com/DargonLee/HLCustomTransitions
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

clone 项目 然后运行pod install 来看实例效果

一行代码实现自定义多个方向的转场动画

  • 无耦合
  • 高效率转场
  • 稳定性好

Platform

Installation

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

pod 'HLCustomTransitions'

Usage

  • 设置控制器尺寸
    
    //在MineViewController中写
  • (void)viewWillLayoutSubviews
    {
    //设置控制器显示的尺寸
    self.view.frame = CGRectMake(0, 100, self.view.bounds.size.width, 500);
    }

- 使用专场动画

//创建要model的控制器实例控制器对象
MineViewController *mineVC = [[MineViewController alloc]init];

//创建转场动画实例对象 并设置专场动画方向的枚举值(有四个枚举值)
HLCustomPresentationController *presentationController = [[HLCustomPresentationController alloc]initWithPresentedViewController:mineVC presentingViewController:self presentedDirection:UIPresentationControllerDirectionFromLeft];

//设置专场动画的代理为自定义转场动画实例
mineVC.transitioningDelegate = presentationController;

[self presentViewController:mineVC animated:YES completion:NULL];



- 或者直接下载 `HLCustomPresentationController.h HLCustomPresentationController.m`文件 拖入项目中进行使用

## Author

[email protected], [email protected]

## License

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

Latest podspec

{
    "name": "HLCustomTransitions",
    "version": "0.1.0",
    "summary": "u4e00u884cu4ee3u7801u5b9eu73b0u81eau5b9au4e49u591au4e2au65b9u5411u7684u8f6cu573au52a8u753b",
    "description": "u4e00u884cu4ee3u7801u5b9eu73b0u81eau5b9au4e49u591au4e2au65b9u5411u7684u8f6cu573au52a8u753b u65e0u8026u5408 u9ad8u6548u7387u8f6cu573a u7a33u5b9au6027u597d",
    "homepage": "https://github.com/DargonLee/HLCustomTransitions",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "DargonLee": "[email protected]"
    },
    "source": {
        "git": "https://github.com/DargonLee/HLCustomTransitions.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "HLCustomTransitions/Classes/**/*"
}

Pin It on Pinterest

Share This