问题标签 [ios-animations]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - 容器内的页面视图控制器,如果需要布局时动画错误
我创建了一个带有标题和容器的视图...在容器内有一个页面视图控制器
通过 iboutlet 约束基于容器调整标头大小
如果容器中有一个表格视图作为页面,则标题根据滚动偏移量调整大小,没有动画
如果我在页面之间滚动,我希望调整标题的大小,所以我创建了一个委托方法来监听滚动动画的结束,然后调整标题的大小
但是如果我用这段代码动画这个调整大小
然后页面在调整大小完成后“重新加载”
这是动画的视频(红色背景是我出于调试原因编辑的页面视图控制器的背景)
ios - Swift3 中的 UIView 动画
我正在尝试将 UIImageView 移动到顶部、底部、左侧和右侧。动画应该是 4 四次。中心图像向顶部移动,然后是左侧位置和右侧位置。如何使用 UIAnimation swift 3 实现这一点?
如何使用动画将图像移动到顶部,左侧,右侧和底部?
ios - 在iOS“Spring”动画库中,每次调用“animate()”方法之前是否需要设置“animation”属性?
我在我的应用程序中使用Spring 库来制作动画效果。
就我而言,我必须为动作按钮设置动画,所以我添加了以下代码块。
在上面的代码流中,动画动作只发生一次。
但是,如果我按如下方式更新“testButtonPressed”方法,
每次按下 testButton 时都会出现动画。
为什么我每次都必须更新动画属性?只更新一次属性还不够吗?
ios - CAShapeLayer, animating path with Transactions
I wondering why when I try to animate the path
property of a CAShapeLayer
with a basic animation it works but when I try to do it with transaction it doesn't.
I've successfully animated other animatable
properties using just transaction. Here is my current code:
the new path is obtained scaling the original path with this (very hardcoded) function inside an extension of CAShapeLayer
:
Can you identify any issue?
ios - 在通过约束设置标签时使用框架
我在 xib 文件中有一些标签,这些标签是由约束设置的。但我想做一些简单的动画。这是想法:将元素设置在屏幕之外,然后用户打开应用程序,然后将其动画化。所以问题是:为了使元素脱离屏幕,我在 viewWillAppear 方法中实现了以下代码,但它不起作用:
和我在 viewDidAppear 方法中的动画代码:
但是如果我将代码从 viewWillAppear 粘贴到 viewDidAppear 它就可以了。但是有点奇怪。如何使它正确?
ios - 呈现没有动画的 SKStoreProductViewController
我正在尝试展示一个SKStoreProductViewController
没有动画的实例。
来自视图控制器 StoreKit 的代码片段来自:
Objective-C
迅速
NO
为国旗传球animated
没有用。StoreKit 视图控制器仍然显示动画。我知道 Apple 框架的主题是允许最少的定制,但我希望情况并非如此。
ios - 如何将子图层居中在另一图层上?
我在 CAShapeLayer() 上画了一些东西。现在我想把它放在另一层。
那么如何将图层的中心与图像视图的中心对齐呢?谢谢。
ios - Zoom in/out on swiping tableView Animation
I want to achieve this animation:
Here is the Gif: http://imgur.com/4TZIbwp
Since the content is dynamic, I'm using tableView to populate the data. I've tried scrollViewDidScroll delegate methods to change the constraints but it's not helping me. I've even tried swipe gesture, but still can't manage to achieve this.
Can anyone provide a knowledge, a bit of code for getting this animation.