
iOS动画专栏
文章平均质量分 91
iOS 7 以后允许自定义视图控制器之间的转换过程,并在视图控制器的呈现和解散时插入自己的动画。本专栏不仅仅包括基于Present的转换技术,还介绍了其它转换技术(基于UIView 动画和容器控制器实现的转换。)
颐和园
这个作者很懒,什么都没留下…
展开
-
创建酷炫的 CollectionViewCell 转换动画
新建 iOS App 项目,打开 Main.storyboad,拖入一个 CollectionView,为其创建布局约束如下:为 CollectionView 创建一个 IBOutlet 连接:新建 swift 文件,充当我们的 model ,这就是我们要渲染在 cell 上的数据:新建 UICollectionViewCell 子类 SalonSelectorCollectionViewCell。打开 SalonSelectorCollectionViewCell.xib,创建如下 UI :Salon原创 2022-06-06 15:02:19 · 1429 阅读 · 0 评论 -
自定义 UIViewController 转换动画: 开始
原文:Custom UIViewController Transitions: Getting Started 作者:Richard Critz 译者:kmyhy 更新说明: 本教程由 Richard Critz 更新至 iOS11 和 Swift 4。原文作者是 József Vesza。iOS 内置了一些好看的 View Controller 转换动画——push、po翻译 2018-01-27 14:10:33 · 1666 阅读 · 0 评论 -
Uberworks
原文:Uberworks 作者:Marin Todorov 译者:kmyhy本教程使用 Xcode 7.1 和 Swift 2。这个月的主题又回到了这一系列文章的开始。事实上,我正在华盛顿参加 RWDevCon 大会,在会上我将推出 iOS Animations by Tutorials 和这一系列文章。我收到了一封来自 Uber 的主题为 Forget your keys 的邮件,它翻译 2018-01-13 16:02:45 · 491 阅读 · 0 评论 -
渐变和遮罩
原文:Fun with Gradients and Masks 作者:Marin Todorov 译者:kmyhy本教程使用 xcode 7 和 Swift 2。在 的第三部分,第14章“渐变动画”中,我介绍了如何对 CAGradientLayer 属性进行动画。在本月的这一期,我将教你如何创建和 CAGradientLayer 有关而不是和 CALayer 自身有关的动画。这里,你翻译 2018-01-06 14:47:16 · 1603 阅读 · 0 评论 -
介绍 EasyAnimation
原文:Introduction EasyAnimation 作者:Marin Todorov 译者:kmyhy本教程使用 Xcode 7/Swift 2 以上版本。在 //UIKit view animationUIView.animateWithDuration(2.0, animations: { self.view.center.x = 200.0})而 CoreAn翻译 2018-01-06 14:43:53 · 1243 阅读 · 0 评论 -
CoreImage 变换
原文:Transitions with CoreImage 作者:Marin Todorov 译者:kmyhy本教程兼容 Xcode 7/Swift 2。在“iOS Animations by Tutorials ”的第 3 章 “转换动画” 中,我向你介绍了如何用内置的转换动画来渐入或渐出你的 view。坦白讲,这种动画有一定限制。你可以选择以内容的位置进行动画,或者交叉溶解,或者反翻译 2017-12-27 09:24:41 · 1311 阅读 · 0 评论 -
用 Ophiuchus 实现文字动画
原文:Text animations with Ophiuchus 作者:Marin Todorov 译者:kmyhy本教程适用于 Xcode 7/Swift 2 及兼容版本。Ophiuchus 是一个由 Yalantis 编写的开源库——Yalantis 在 GitHub 上编写了大量和动画相关的开源库,这里列出了其中一些代表作:一个可收起的 tab bar动画侧边栏一个下拉刷翻译 2017-12-17 17:48:43 · 1090 阅读 · 0 评论 -
用 CAShapeLayer、毛玻璃镂空效果创建加载动画
原文: Creating an activity indicator using CAShapeLayer, blur effect and vibrancy 作者:Marin Todorov 译者:kmyhy这个教程使用 Xcode 7/Swift 2。我在编写 Doodle Doodle app 时曾经准备了大量视频以便向用户知道显示如何使用和安装 Doodle Doodle翻译 2017-12-04 17:25:43 · 1781 阅读 · 0 评论 -
用 CAReplicatorLayer 创建动画
原文:Creating animations with CAReplicatorLayer 作者:Marin Todorov 译者:kmyhy本教程针对 Xcode 7/Swift 2 或更高版本。CAReplicatorLayer 绝对是我最爱的 CALayer,因此我很愿意向你介绍如何用它来创建动画。在本教程中,我将向你展示用 CAReplicatorLayer 创建 3 种不同的翻译 2017-12-04 17:26:56 · 1110 阅读 · 0 评论 -
网格变形动画
原文:Mesh Transforms 作者:Bartosz Ciechanowski 译者:kmyhy我是 transform 属性的超级粉丝。让 UIView 或者 CALayer 的形体发生改变的最简单方法就是联合使用旋转、平移和缩放。在易于适用的同时,常规变换所能实现的效果也同时被限制住了——比如一个矩形只能变换成其它四边形。这是毫无疑问的,但除此之外我们还可以做的更多。本文介绍翻译 2017-03-21 17:22:47 · 8372 阅读 · 2 评论 -
iOS 动画教程-自定义 View Controller 呈现转换
原文:ios-animation-tutorial-custom-view-controller-presentation-transitions 作者:Marin Todorov 译者:kmyhy当你呈现相机、通讯录、或者某种自定义模式窗口时,你每次都会调用同一个 UIKit 方法 present(_:animated:completion:)。这个方法将当前屏幕“让给”另一个 vi翻译 2017-01-11 17:31:37 · 1916 阅读 · 0 评论 -
ViewController容器
原文: http://www.cocoanetics.com/2012/04/containing-viewcontrollers/ 在我的一个项目中,我需要实现一种容器式的 view controller。我感觉几乎是寸步难行,因为这种技术用的人是那么的少。因为很显然,开发者更喜欢重用和利用已有的view controller,而不是发明新的容器。但是在某些情况下你更需要定制自己的容器。比起UI翻译 2014-04-01 17:48:48 · 14375 阅读 · 0 评论 -
自定义View Controller转换动画
原文链接 : Introduction to Custom View Controller Transitions and Animations 原文作者 : joyce echessa 译文出自 : 开发技术前线 www.devtf.cn 译者 : kmyhy Looking at the built in apps from Apple on your iOS device,原创 2015-12-14 15:11:37 · 3578 阅读 · 0 评论 -
UIPresentationController 教程:入门
原文:UIPresentationController Tutorial: Getting Started 作者:Ron Kliffer 译者:kmyhy很久以来,View Controller Presentation 就已经是每个 iOS 开发者工具中不可或缺的部分。你之前肯定用过 present(_:animated:completion:) ,但如果你和许多开发者一样,很可能你翻译 2016-11-16 08:46:08 · 7573 阅读 · 0 评论 -
轻松实现部分背景半透明的呈现效果
实现一个简单的呈现/解散动画效果,当呈现时,呈现的主要内容和背景要明显区分,背景呈现一个半透明遮罩效果,透过背景可以看到下层 View Controller 的内容原创 2016-11-24 17:16:46 · 6997 阅读 · 1 评论 -
自定义 children view controller 动画
新建 Single-View Application。 新建 3 个 UIViewController : ContainerController、FirstController、SecondController。1. UI打开 Main.storyboard:在 ViewController 上拖入一个 SegmentControl、一个 Container View,Container Vie原创 2016-12-11 20:36:05 · 1809 阅读 · 0 评论 -
模拟 UIAlertView
原文:Transcending UIAlertView on iOS 7 作者: Matt Neuburg 译者:kmyhy在我看来,在 iOS7 提供给开发者中的所有新特性中,最重要的莫过于一个 UI 方面的改进:自定义 view controller 转换,能够在 view controller 呈现时插入自己的动画。这样:当 tab bar controller 的某个子控制器翻译 2016-12-16 17:55:00 · 1324 阅读 · 0 评论