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
6
votes
3 answers

How to make half curl animation in iPhone like the maps app?

I am using the following code for page curl animation [UIView beginAnimations:@"yourAnim" context:nil]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:yourView cache:cacheFlag]; ... [UIView commitAnimations]; Is it possible…
Biranchi
  • 16,120
  • 23
  • 124
  • 161
6
votes
2 answers

What does the completion handler look like in C# when trying to animate?

I want translate this code [UIView animateWithDuration:0.25 animations:^{ self.datePicker.alpha = 0.0f; } completion:^(BOOL finished){ self.datePicker.hidden = YES; } ]; to Xamarin iOS: UIView.Animate (0.25, …
testing
  • 19,681
  • 50
  • 236
  • 417
6
votes
5 answers

Interrupt UITableView cell resize animation?

I have a UITableView, and when it stops scrolling (scrollViewDidEndDecelerating:) the height of the current cell expands by setting the variable currentRow and reloading: - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView { CGFloat…
6
votes
3 answers

How to rotate UIView by 45 degrees?

I want to rotate my UIButton by M_PI/4 with animation. Here's my code: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [UIView animateWithDuration:.5 animations:^{ self.closeButton.transform =…
Valentin Shamardin
  • 3,569
  • 4
  • 34
  • 51
6
votes
1 answer

ios animation. How nested animations affect duration?

Let's say I have a timed UIAnimation, in the format of [UIView animateWithDuration:DURATION_X animations:^ { [function that might contain a separate animation with DURATION_Y] } completion:^(BOOL finished) …
Erika Electra
  • 1,854
  • 3
  • 20
  • 31
6
votes
3 answers

Allowing one method call at a time to a category method ios (@synchronized)

I have a UIViewController and a Category for adding methods to the UIViewController. There is a method in the category: @implementation UIViewController (AlertAnimationsAndModalViews) -(void)someAddedMethod { UIView *someView; //do some…
6
votes
2 answers

Subviews Not Positioned Correctly During Animation

I have a simple animation where I'm expanding a new view from the center of the old one, while that one fades out. However, the subviews of this new view (a button and a label) "fly" in from off the lower right hand side of the screen as that new…
rdelmar
  • 103,982
  • 12
  • 207
  • 218
6
votes
3 answers

Rotate a UIView clockwise for an angle greater than 180 degrees

I'm animating a clock arm from pointing towards 12 o'clock to the current time. If it is say, 11 o'clock, I want the arm to rotate clockwise to the 11 o'clock position. But of course if I use: CGAffineTransform rotation =…
Darren
  • 10,091
  • 18
  • 65
  • 108
5
votes
3 answers

How to custom UIViewAnimationCurve like CAMediaTimingFunction's functionWithControlPoints

the UIViewAnimationCurve only have UIViewAnimationCurveEaseInOut UIViewAnimationCurveEaseIn UIViewAnimationCurveEaseOut UIViewAnimationCurveLinear these functions. but,I need like ExpoOut , BackInOut animation for UIView. like ExpoOut is…
yellow
  • 702
  • 1
  • 10
  • 24
5
votes
1 answer

iOS - animating UIView on iPad, change x origin and width simultaneously?

I'm having some trouble with UIView animations on iPad. I'm working on a project in which I have implemented a "facebook style" menu on the left, using the JTRevealSidebar framework. This framework works perfectly, however, instead of "pushing" the…
Mutix
  • 4,196
  • 1
  • 27
  • 39
5
votes
2 answers

Change UIWindow background color when device rotates

My UIWindow initially has a white background. I want to change the background to blue (permanently) when the device rotates. But what actually happens is the color briefly flashes blue then goes back to white. In the app delegate: -…
jlstrecker
  • 4,953
  • 3
  • 46
  • 60
5
votes
3 answers

Strange behavior when animating UITextField

I'm trying to animate a UITextField but I've been caught by a annoying and strange problem. My animation has the following sequence: In first state the application has the UITextField, the camera UIButton and the cancel UIButton after the camera…
Fabio
  • 191
  • 2
  • 7
5
votes
3 answers

Stopping all animations being performed on different thread

I have a menu with items popping right after each other in intervals of 3 seconds, I'm doing it like so: for(UIButton *menuItem in menuItems){ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (0.3 * i) * NSEC_PER_SEC),…
Shai Mishali
  • 9,224
  • 4
  • 56
  • 83
5
votes
2 answers

User interaction on an animated UIButton

I am trying to make a little application in Xcode 4.2 targeting the iPhone. What I want is a UIButton that animates down the screen, and when you press it, you set it's alpha to 0. I found a method from the UIView class that was able to deal with…
Seerex
  • 591
  • 1
  • 9
  • 21
5
votes
2 answers

UIView animation to slide down

I'm trying to slide down an image in an UIImageView, but I don't know which combination of UIContentMode and animation property is the right one to make that happen. The image should always have the same size and should not be streched... all I want…
denbec
  • 1,321
  • 18
  • 25