TTModalView 1.0.1

TTModalView 1.0.1

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年3月

jiang titeng 维护。



  • titeng.jiang

TTModalView 是一个自定义内容的模态窗口组件,可以任意定制窗口的内容,支持 frame,autolayout 等方式定位,支持定制 modal 层的大小以及窗口层次,支持 50 多种窗口弹出效果。灵活的设计能满足大部分弹出窗口的需求

演示

基本用法

  1. pod 'TTAnimations'
  2. import TTAnimations/AnimationHelper.h

  3. 选择目标视图

      [AnimationHelper playAnimationOn:_targetView animationType:rubberBand];
    
    
    

    使用 AnimationBuilder 进行自定义动画

      _animationBuilder = [[AnimationBuilder alloc] init];
      [_animationBuilder setDelegate:self];
      [_animationBuilder setDuration:3.0f];
      [_animationBuilder setAnimationType:_animationType];
    
      [_animationBuilder startOn:_targetLabel completeBlock:^{
              NSLog(@"complete animation");
      }];
  4. 最后您需要选择以下动画之一

    • bounce
    • flash
    • pulse
    • rubberBand
    • shake
    • headShake
    • swing
    • tada
    • wobble
    • jello
    • bounceIn
    • bounceInDown
    • bounceInLeft
    • bounceInRight
    • bounceInUp
    • bounceOut
    • bounceOutDown
    • bounceOutLeft
    • bounceOutRight
    • bounceOutUp
    • fadeIn
    • fadeInDown
    • fadeInDownBig
    • fadeInLeft
    • fadeInLeftBig
    • fadeInRight
    • fadeInRightBig
    • fadeInUp
    • fadeInUpBig
    • fadeOut
    • fadeOutDown
    • fadeOutDownBig
    • fadeOutLeft
    • fadeOutLeftBig
    • fadeOutRight
    • fadeOutRightBig
    • fadeOutUp
    • fadeOutUpBig
    • flipInX
    • flipInY
    • flipOutX
    • flipOutY
    • lightSpeedIn
    • lightSpeedOut
    • rotateIn
    • rotateInDownLeft
    • rotateInDownRight
    • rotateInUpLeft
    • rotateInUpRight
    • rotateOut
    • rotateOutDownLeft
    • rotateOutDownRight
    • rotateOutUpLeft
    • rotateOutUpRight
    • hinge
    • rollIn
    • rollOut
    • zoomIn
    • zoomInDown
    • zoomInLeft
    • zoomInRight
    • zoomInUp
    • zoomOut
    • zoomOutDown
    • zoomOutLeft
    • zoomOutRight
    • zoomOutUp
    • slideInDown
    • slideInLeft
    • slideInRight
    • slideInUp
    • slideOutDown
    • slideOutLeft
    • slideOutRight
    • slideOutUp

许可证

TTAnimation 使用 MIT 许可证发放。( https://open-source.org.cn/licenses/MIT)