Questions tagged [uiviewanimation-curve]
18 questions
16
votes
3 answers
ios UIView animation curves
Is there any way to do things the "short and easy" way like below? The curve appears to still use EaseOut.
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView animateWithDuration:0.5 animations:^{
// ... do stuff here
}];

Jacksonkr
- 31,583
- 39
- 180
- 284
14
votes
1 answer
How to force a raw value of 7 into a UIViewAnimationCurve enum?
The key UIKeyboardAnimationCurveUserInfoKey in the userInfo dictionary of a UIKeyboardWillShowNotification contains an Int with the value 7.
Now I need to pass this Int into UIView.setAnimationCurve(). I tried to create the required…

Sebastian Kirsche
- 861
- 2
- 19
- 36
9
votes
3 answers
Keyboard Animation Curve as Int
I am trying to get the UIAnimationCurve of the keyboard, if it exists. The code I am using is below:
if let kbCurve = userInfo[UIKeyboardAnimationCurveUserInfoKey] as? Int{
animateCurve = UIViewAnimationCurve.
}
However,…

steventnorris
- 5,656
- 23
- 93
- 174
8
votes
1 answer
UIView animation warning
I am using following code
[UIView animateWithDuration:1.0
delay:0.05
options:UIViewAnimationCurveEaseIn
animations:^{
//Code
}…

Hassy
- 5,068
- 5
- 38
- 63
8
votes
4 answers
transitionFromView: and strange behavior with flip.
I have a image wall (UIScrollView) and in there I have a lot of UIImageView's.
Here is my code:
for (ThumbPosterModel *tPoster in _thumbsPosterStack) {
UIImageView *imageView = [[UIImageView alloc] initWithImage:tPoster.thumb];
…

Jakub
- 13,712
- 17
- 82
- 139
5
votes
3 answers
Equation for time-versus-position graph for iOS 7 spring animation (animateWithDuration:delay:usingSpringWithDamping:...)
Given the spring parameters used in [UIView animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:]:
usingSpringWithDamping
initialSpringVelocity
what is the mathematical equation for the…

ememem
- 968
- 1
- 10
- 23
5
votes
3 answers
UIView animation curve not working easeinout
I am stumped by a very simple task, I want a UIView animation to do ease in / ease out but it is always linear despite using the correct animationOption.
Here is the code which by all accounts should work, it's set in a…

Daniel Nordh
- 600
- 6
- 9
5
votes
3 answers
Use two different UIViewAnimationCurves in the same animation
I want to be able to use one UIViewAnimationCurve for rotations and another for changes in position. Is this possible?
For example (in pseudo code);
// Begin animations
// Set rotation animation curve to EaseInOut
// Set position animation curve…

Magic Bullet Dave
- 9,006
- 10
- 51
- 81
2
votes
1 answer
Adding curveEaseIn to Swift Animation
I have an image that rotates but it stops abruptly. I'd like to add curveEaseOut to make it stop smoother, but when I add the animations: .curveEaseOut, I get an error.
func rotateRight () {
let rotation = 90.0
let transform =…

Jupiter869
- 657
- 2
- 7
- 19
2
votes
2 answers
[UIView setNeedsDisplay]: is there an easy way to know when drawRect is complete?
I have a UIView that I import to display bezier paths with setNeedsDisplay from the super class.
I need to call another method in the super class once the UIView has finished updating. I call the method after setNeedsDisplay however the method is…

PaulMrG
- 1,822
- 2
- 16
- 20
1
vote
1 answer
How to create a series of UIView animations that start with .curveEaseIn and end with .curveEaseOut, and move at a steady pace
I wrote the following little demo that rotates a UIView 360° by rotating it 90° at a time. That means the animation has 4 steps
I wanted it to ease in on the first animation step, go at a steady pace for the middle 2 steps, and then use ease out…

Duncan C
- 128,072
- 22
- 173
- 272
1
vote
0 answers
getting a warning concerning UIViewAnimationCurveEaseIn
I just updated my app because of a warning and now I get the following error
Implicit conversion from enumeration type 'enum UIViewAnimationCurve' to different enumeration type 'UIAnimationOptions' (aka 'enum UIViewAnimationOptions')
This is the…

user1114881
- 731
- 1
- 12
- 25
1
vote
2 answers
iOS Calculation control points for bezier path curve animation given two points
I'm trying to animate the movement of a view using CGPathAddCurveToPoint and generating a bezier path but I'm having trouble figuring out the control points between the origin and the destionation. Any of you knows how can I can calculate…

Juan
- 627
- 2
- 9
- 27
0
votes
0 answers
how to do UIView Intrective Animation in swift 3?
i want do Animation just Like same as Below Link:
https://dribbble.com/shots/4853929-View-Photos
i also tried many 3rd party Library but am not getting exactly animation just like Above Link.
var rotationAndPerspectiveTransform: CATransform3D =…

princ___y
- 1,089
- 1
- 9
- 27
0
votes
1 answer
Screen recording of iPhone while playing a video
In my project I have to add a book page flip animation, and in this book on the right side page a video will play. Once the first video will complete the page will turn like as book page and the second video will play on the next right side page and…

Gobinda Das
- 143
- 7