Questions tagged [uianimation]

411 questions
3
votes
1 answer

With UIView Block animation do Flashing effect

I want a flashing animation, Alpha value through UIView the code below, why disappear when the animation display has a direct emerged? Animation is not smooth. [UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionRepeat animations:^{ …
isacedgg
  • 33
  • 4
3
votes
2 answers

Button image array animation with delay after every cycle

I am working on with a simple animation that I have 10 button and "on click" of one button ( for example 5) all button should start animate one by on but they are animating the same time, please let me know what can be done or ..... Thanks …
Retro
  • 3,985
  • 2
  • 17
  • 41
3
votes
2 answers

How do I take a UIView with a background pattern set and shrink it down vertically with an animation

I want the top of the view to meet the bottom of the view in a quick animation for its disappearance. (Preferably have it grow for a second first.) How would I go about doing this? The UIView has a background pattern set with [UIColor…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
3
votes
5 answers

button press animation

So I've searched a lot but I didn't find an answer for my problem. I want to make a button that would have two images, first image that is when button is in normal state, the other one when it is in highlighting state. The problem is that i want…
Lukas
  • 2,515
  • 4
  • 28
  • 37
3
votes
0 answers

How to set UITableView contentinset and insert row at the same time?

I am trying to add a row to the top of my tableview at -44.0 offset (hidden) and not see any animations on the screen. To do this I am calling [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:0…
tim woo
  • 41
  • 3
3
votes
3 answers

get to an UIView frame a zoom animation

I am trying to add one UIView with a transition style zoom animation like this: ^ | <---.---> | v The view start with a little frame (centerParent.x, centerParent.y,20, 20) and then change to (centerParent.x,…
damacri86
  • 295
  • 3
  • 13
2
votes
1 answer

Recursive method containing UIAnimation block, how to properly release

I did a small "loader" that I can stick on the UI when I need it. Much like the UISpinnerView. It has some logic (I simplified the code in the block for this post) that require it to be recursively called. I do it like this: - (void) blink { …
2
votes
1 answer

CGAffineTransform: Apply translate and scale at the same time

I have two UILabels. A bigger on the left side of the screen and a smaller on the right side. I'm trying to use CGAffineTransform to animate moving the smaller label into the place of the bigger one and scale it to the same size, and move the bigger…
chnski
  • 557
  • 1
  • 4
  • 20
2
votes
0 answers

How to change position of uicollectionviewcell with animation?

I'm designing a screen of friends list that have animation like this: I started with collectionview but I don't understand how to change position of cells. I take two uicollectionviewcell one for image, name and second for all details like the…
2
votes
3 answers

How to make this animation? viz. Connect the shared element

There is this great ui guide which shows some cool ui transitions. I would like to know how to do this animation (the great one). I know how to do the good one. I also have some success with the great one (by taking snapshot of the next…
Rishab
  • 1,901
  • 2
  • 18
  • 34
2
votes
1 answer

Is it impossible to flip subviews of a viewControllers.view with "transitionWithView" using a block

I simply can't get this to work, I would think it was simple, but no luck. - (void) animate { UIView *viewA = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 300.0f, 100.0f)]; [viewA setBackgroundColor:[UIColor blueColor]]; UIView…
RickiG
  • 11,380
  • 13
  • 81
  • 120
2
votes
2 answers

UIView horizontal bar animation in swift

I am working on this animation where a number will be received every second and progress bar has to fill or go down based on the double value. I have created the views and have added all the views in the UIStackView. Also made the outlet collection…
Paragon
  • 982
  • 2
  • 10
  • 37
2
votes
2 answers

Can I "curl down" a page on popViewControllerAnimated?

I can "curl up" a view controller with this code: [UIView beginAnimations:@"animation" context:nil]; [self.navigationController pushViewController:page animated:NO]; [UIView setAnimationDuration:1]; [UIView…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
2
votes
1 answer

iPhone UIView Animation Duration only works instantly

This code is being executed in the touchesended method of a subclassed uiview, however it doesn't animate, it just instantly changes the background color. What is wrong? self.backgroundColor = [UIColor blackColor]; [UIView…
ebabchick
  • 87
  • 1
  • 2
  • 7
2
votes
1 answer

Animate UILabel width with fixed center

How to animate a change in width while keeping the view centered? Currently when I do it, it doesn't grow from the center. self.textLabel = UILabel() self.textLabel.frame = CGRectMake(0, 0, Globals.voterTextLabel,…