zoukankan      html  css  js  c++  java
  • UIView 弹出动画

    // 展开动画
    - (void)beginAnimations
    {
        CGContextRef context = UIGraphicsGetCurrentContext();
        [UIView beginAnimations:nil context:context];
        [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
        [UIView setAnimationDuration:0.6];//动画时间长度,单位秒,浮点数
        myView.frame = CGRectMake(0, 0, 320, 110);
        [UIView commitAnimations];
    }
    
    // 收起动画
    - (void)endAnimations
    {
        CGContextRef context = UIGraphicsGetCurrentContext();
        [UIView beginAnimations:nil context:context];
        [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
        [UIView setAnimationDuration:0.6];//动画时间长度,单位秒,浮点数
        myView.frame = CGRectMake(0, -110, 320, 110);
        [UIView commitAnimations];
    }
  • 相关阅读:
    Orleans介绍
    Orleans入门
    mongodb for windows安装
    ASP.NET Identity
    OWIN与Katana
    手动搭建ABP2.1.3 Zero——基础框架
    ABP学习笔记
    ABP-Zero模块
    ABP单元测试
    ABP-JavaScript API
  • 原文地址:https://www.cnblogs.com/joesen/p/3517974.html
Copyright © 2011-2022 走看看