在IPHONE上使用标准core animation调用
- (void) action: (id) sender
{
    //self.navigationItem.rightBarButtonItem = nil;

// Adapted from Lucas Newman's sample code (www.lucasnewman.com)
    UIView *theView = [self.view viewWithTag:101];
    [CATransaction begin];
    [CATransaction setValue:[NSNumber numberWithFloat:ANIMATION_DURATION] forKey:kCATransactionAnimationDuration];
    
    // scale it down
    CABasicAnimation *shrinkAnimation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
    shrinkAnimation.delegate = self;
    shrinkAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
    shrinkAnimation.toValue = [NSNumber numberWithFloat:0.0];
    [[theView layer] addAnimation:shrinkAnimation forKey:@"shrinkAnimation"];
    
    // fade it out
    CABasicAnimation *fadeAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"];
    fadeAnimation.toValue = [NSNumber numberWithFloat:0.0];
    fadeAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
    [[theView layer] addAnimation:fadeAnimation forKey:@"fadeAnimation"];
    
    // make it jump a couple of times
    CAKeyframeAnimation *positionAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"];
    CGMutablePathRef positionPath = CGAutorelease(CGPathCreateMutable());
    CGPathMoveToPoint(positionPath, NULL, [theView layer].position.x, [theView layer].position.y);
    CGPathAddQuadCurveToPoint(positionPath, NULL, [theView layer].position.x, - [theView layer].position.y, [theView layer].position.x, [theView layer].position.y);
    CGPathAddQuadCurveToPoint(positionPath, NULL, [theView layer].position.x, - [theView layer].position.y * 1.5, [theView layer].position.x, [theView layer].position.y);
    CGPathAddQuadCurveToPoint(positionPath, NULL, [theView layer].position.x, - [theView layer].position.y * 1.25, [theView layer].position.x, [theView layer].position.y);
    positionAnimation.path = positionPath;
    positionAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
    [[theView layer] addAnimation:positionAnimation forKey:@"positionAnimation"];
    
    [CATransaction commit];    
}

UIImageView视图内容按比例缩小并淅淅隐去相关推荐

  1. renpy 生成分发版隐去 rpy源码

    在options.rpy 添加一行,隐去rpy build.classify('game/**.rpy, None)

  2. 教你如何将UIImageView视图中的图片变成圆角

    今天在制作博客园HD应用的时候,需要将首页园友的avatar图片显示出来,经过读取数据并加载显示的时候不是圆角的,与iOS的界面格格不入越看越不舒服,所以我就打算看看是否能通过SDK自带的方法将UII ...

  3. 想把读取的网络图片显示在UIImageView 视图,居然死活不显示,代码绝对没问题

    是的,代码绝对没问题 闹鬼喽............... 原来原来原来 没有绝对的没问题 ? 我的测试图片地址 http://pic2.zhimg.com/0e7f5548fca3cb7c29d69 ...

  4. 隐去浏览器中当鼠标移到图片上跳出的工具栏

    <img galleryimg="no"> 或者 <head> <meta http-equiv="imagetoolbar" c ...

  5. slidingmenu能否实现菜单页在内容页上方,而不是把内容页挤到一边去????...

    ============问题描述============ ............................ ============解决方案1============ 这样的话 你自己写不就好 ...

  6. 将从数据库中读取的号码中间四位隐去显示在界面上

    需求 在使用各种软件或者是查看个人信息时常看到中间的四位信息是用"*"代替的.以达到保护信息的目的. 实现方法,使用fill函数.将从数据库中读取的string型的电话号码转成ch ...

  7. 如何拿到9家大厂的前端校招offer

    关注前端达人,与你共同进步 本文由 杨珏成 首发于 掘金,未经许可请勿转载 原文链接:https://juejin.im/post/5d70ff205188253e4b2f07bd 0x00 作者是谁 ...

  8. 北理大佬是如何拿到 9 家大厂的前端 offer (附面试题和典型思路)

    本文由 杨珏成 首发于 掘金,未经许可请勿转载 原文链接:https://juejin.im/post/5d70ff205188253e4b2f07bd 0x00 作者是谁 我就读于北京理工大学软件工 ...

  9. 横扫9家大厂前端校招offer,全文14560字,阅读需80分钟

    本文由 杨珏成 首发于 掘金,未经许可请勿转载 原文链接:https://juejin.im/post/5d70ff205188253e4b2f07bd 0x00 作者是谁 我就读于北京理工大学软件工 ...

最新文章

  1. mysql表结构说明只能为1 8_SQL基础
  2. 长尾关键词优化也要讲技巧
  3. react 动态添加组件属性_这么高质量React面试题(含答案),看到就是赚到了!...
  4. 绕过TracerPid检测
  5. pymsql 与 SQLAlchemy 操作数据库的区别
  6. mysql关联查询去重_MySQL外键和高级查询(连接查询、联合查询、子查询、去重查询)...
  7. 使用Docker 实现微服务并搭建博客,一文全掌握
  8. 查询linux服务器事物传输失败日志,查看fail2ban日志代替lastb查看登录失败记录
  9. 为什么数据可视化很重要
  10. bzoj千题计划175:bzoj1303: [CQOI2009]中位数图
  11. python time sleep 阻塞 异步_python 之 并发编程(进程池与线程池、同步异步阻塞非阻塞、线程queue)...
  12. 深度学习图像分类(四): GoogLeNet(V1,V2,V3,V4)
  13. 怎样让手机打电话显示不在服务器,要怎样设置才让对方打电话进来是空号?
  14. 深扒Mobileye—与特斯拉分手,被英特尔收购,现在又成了蔚来的救星?
  15. 删除下拉框只找23火星软件_下拉框软件找28火星下拉
  16. STM32几种流行开发环境的优缺点
  17. 【APP授权登录】创建新浪微博(sina)移动应用
  18. 电子计算机 隐形眼镜,戴隐形眼镜看电脑要注意什么
  19. csgo控制台所有代码飞天_CSGO飞天穿墙指令noclip设置移动速度,及卡住不动解决方法...
  20. 英文论文评审意见_怎样写英文审稿意见

热门文章

  1. 名帖194 米芾 行书《珊瑚帖》
  2. 这个春天,邀你一起探寻AI与青春的碰撞之力
  3. TCL中变量嵌套使用
  4. Led台灯对眼睛好吗?2022双十一不伤眼的护眼灯推荐
  5. 5G千兆路由器工业物联网应用
  6. 安装webase时报错,Nginx冲突!
  7. can‘t connect to mysql server on localhost解决办法。 net start mysql——无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动。
  8. C语言舞伴问题 PTA
  9. 使用yocs_smoother_velocity做速度平滑处理
  10. 为什么会显示贵州云服务器,为什么云服务器都放在贵州