Questions tagged [uiviewanimation]

There is no default class called UIViewAnimation, this tag refers to methods that perform animation on UIView objects.

includes a number of different ways to perform animations. One of the simplest is to use the animation support in the UIView class.

Prior to iOS 4, the only way to do UIView animation was with beginAnimations:context/commitAnimations. Those methods are discouraged in iOS 4 and later.

For iOS versions greater than 4.0, you should use the new UIView class methods whose names start with animateWithDuration:

1798 questions
7
votes
1 answer

Facebook app-style photo zooming from UITableView / Feed

In the Facebook app, when you're on the feed, and you tap on a photo to view it, a few things happen: The image animates/moves to the center of the screen, no matter where its current position in the table view (middle, partially off the screen…
Jai Govindani
  • 3,181
  • 21
  • 26
7
votes
4 answers

Trying to animate two UIViews simultaneously, only one moves

I'm trying to create an animation in my iOS app where a new view slides on screen from the left while the main view slides to the right to make room for it. The main view is a subview of my view controller's top view, and the side view that slides…
Bri Bri
  • 2,169
  • 3
  • 19
  • 44
7
votes
2 answers

animateWithDuration: corrupts smooth progressbar increment

In one of my views i need to animate frame property of a UIImageView and while doing it i want to show a progress bar(UIProgressView) in the title view of the navigation bar.The problem is the if i comment out the following animation blocks the…
Ilker Baltaci
  • 11,644
  • 6
  • 63
  • 79
7
votes
3 answers

Autolayout breaks UIView Animation

Struggling to make my app work on both the iPhone 5 and the smaller iPhone's prior. Would be happy to require iOS6 and use Autolayout because that works great. However, the app has 4 buttons that regularly swap positions, so I assign each button a…
William Robinson
  • 1,038
  • 17
  • 32
7
votes
3 answers

How can I load a view from left side?

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated This function load a view from right side. How can I Load a view from left side?
Harikrishnan
  • 9,688
  • 11
  • 84
  • 127
7
votes
2 answers

UITextView animating change of frame does not animate text reallocation

I have a UITextView, and I am trying to animate a change of frame when the user taps on a button. Basically the text view grows larger to fit the screen so it can display more text, and then when the user taps the button again it shrinks to its…
The dude
  • 7,896
  • 1
  • 25
  • 50
7
votes
2 answers

How to pass arguments to NSAction?

Well, everyone knows that in ObjC we have + (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL…
folex
  • 5,122
  • 1
  • 28
  • 48
6
votes
1 answer

Animating objects from off screen loss of response

I have a UIViewController. Within that is a UITableView which is drawn at origin 0,0. I also have a UIScrollView that is drawn at 0,-80 so that it is off screen and not visible. When a menu button is pressed, I animate the UIViewController's frame…
random
  • 8,568
  • 12
  • 50
  • 85
6
votes
3 answers

pop out animation of UIView in swift

I am learning swift, I was successfully able to do popup animation of an UIView as below code but now i want to do reverse of it. i.e the way the UIView was animated should go back on a button click, Like the view is shrinking and then…
Uzair Dhada
  • 333
  • 2
  • 6
  • 23
6
votes
1 answer

Migrating from `POPSpringAnimation` to native iOS framework in Swift 4

I am working on an old project and want to get rid of POP framework I am sure that any animation can be done with native iOS framework. Here is the old code: POPSpringAnimation *springAnimation = [POPSpringAnimation…
iOSGeek
  • 5,115
  • 9
  • 46
  • 74
6
votes
2 answers

Cells disappearing during animation of UITableView

I have a normal UITableView in my UIViewController, constrained to fullscreen. This tableView has a custom interactive tableHeaderView. The tableHeaderView is dynamic in size, and expands on its own. The headerView has a textField, and will change…
Sti
  • 8,275
  • 9
  • 62
  • 124
6
votes
1 answer

how can I animate UIImageView when user drags MKMapView?

I have a UIImageView with an image there, this image is a typical map picker. I put it on the map in storyboard and assigned some constraints. When user drags around my map, that image stays untouched, I want to find a way of animating it -…
user3766930
  • 5,629
  • 10
  • 51
  • 104
6
votes
4 answers

UIView - Animate with duration seems to ignore duration

I'm facing a problem : I have a very simple custom UIView which groups one UITextField and one UILabel. The UILabel is on the UITextField, and I want that the UILabel go up to 40px when user begins to edit the UITextField. I'm using constraints…
AnthonyR
  • 3,485
  • 1
  • 18
  • 41
6
votes
1 answer

preferredStatusBarUpdateAnimation being ignored

I have AuthViewController that is presenting MainViewController like so: let mainVC = MainViewContoller() mainVC.modalTransitionStyle = .CrossDissolve authVC.presentViewController(mainVC, animated: true, completion: nil) I want the…
Cody Winton
  • 2,989
  • 5
  • 25
  • 48
6
votes
3 answers

Is there any way to animate Paintcode variables?

I have a stylekit in paintcode with one stylekit drawing method that takes a single parameter - is there any way I can use UIView.animateWithDuration(etc..) to animate that parameter so my view updates smoothly?
teo751
  • 321
  • 1
  • 4
  • 13