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
0
votes
1 answer

UIDynamicAnimation issue with autolayout

I am new to autolayout. I have got a view hierarchy working fine with autolayout. I got a container view displaying a menu. I am animating this view using Dynamics to make a pop effect: the view grows from a tiny size to its target size. The…
0
votes
1 answer

Smart UITableView header view

I need table view with custom header view. When i touch this header view i'll make her resize. I have class topBarViewController with next code (for example): topBarViewController class: - (void)viewDidLoad { [super viewDidLoad]; …
Oleg Sobolev
  • 3,286
  • 2
  • 16
  • 29
0
votes
1 answer

Changing width of UIView with Autolayout

I have made a small demonstration to show what is happening in my app. Basically, I want to animate a UIView on the top left which takes up half of the screen width, to occupy the whole width and "push" the UIView on the top right off screen. Then…
Jamie
  • 5,090
  • 28
  • 26
0
votes
0 answers

UIView animation complete before the given duration

I have an animation of UIView using the following block based animation method. The animation basically resize a view width from 300 pixel to 0 in 60 seconds. But the problem is view is resized to 0 width even before 60 seconds(around 55-56 seconds)…
russell
  • 3,668
  • 9
  • 43
  • 56
0
votes
1 answer

TextField animation broken ios8

This code was working beautifully in ios 7. However, with ios8 and xcode 6.0.1 it has stopped working. When a user clicked on a text field to enter text, the field animated to float just above the top of the keyboard so they can see what they are…
hansoac
  • 47
  • 8
0
votes
1 answer

Autolayout messing with my animations

So I had a UITableView inside a View Controller (not a UITableViewController) and to support iphone 6 & 6 Plus I started to implement Autolayout. Everything working nice and smooth right now, the problem is that I had resize animations on UIViews…
Fdo
  • 1,053
  • 4
  • 15
  • 38
0
votes
1 answer

Custom UIViewController Transition by using custom segue class

im trying to implement a custom transition-style to fade in a new Viewcontroller by using a custom segue and implementing a segue class. I almost manages to implement this but every time i run the application i get the warning/error: "Unbalanced…
0
votes
1 answer

Change background colour BEHIND ViewController frame (when frame.origin is altered)?

I have an app which intakes client details, built for iPad. When the user taps a UITextField towards the bottom half of the ViewController, the frame programatically shifts upwards so that the fields aren't hidden behind the keyboard. (I tried to…
rosshump
  • 370
  • 1
  • 4
  • 21
0
votes
1 answer

Adjusting Height of UITextView Animated

I am attempting to resize a UITextView on keyboard show. However, my below code is behaving oddly. The text view jumps to the new height, then animates back to it's original height. Any help here would be appreciated. //Handles keyboard appearance …
steventnorris
  • 5,656
  • 23
  • 93
  • 174
0
votes
0 answers

How to combine translation and fading animations

I'm trying to rearrange the content of my UIView based on a user event (rotation), and I've found that I would like to combine a translation animation, and the fading out and fading in of various controls. Since this seems to depend on the "options"…
Chris
  • 629
  • 1
  • 10
  • 28
0
votes
2 answers

Different animation duration for subviews of an UIView

I have the following code [UIView animateWithDuration:2 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{ mainPage.frame=CGRectMake(0, -[UIScreen mainScreen].bounds.size.width,[UIScreen…
Bassel Shawi
  • 604
  • 4
  • 11
  • 29
0
votes
1 answer

UIViewAnimationWithDuration not respecting the duration?

Alright, I'm almost positive I'm just doing something stupid, but I'm new to this, so please excuse my incompetence. I have a nested animation block, and it changes the view controller once it's finished - one problem. It fires prematurely. I don't…
jak1200
  • 45
  • 6
0
votes
1 answer

How do I get rid of the "local declaration hides instance variable" warning?

I wanted to add an simple picture animation in my app, but its not showing. I get this yellow error saying "local declaration of 'images' hides instance variable" In the following place: [images addObject:[UIImage imageNamed:[imageNames…
0
votes
0 answers

uitableview cell delete, custom animation

i am trying to create a custom animation for the deletion of table rows by overriding the deleteRowsAtIndexPaths method. i created the custom insert animation successfully and tried to reverse the animation for the deletion part but i get some…
mantov1
  • 117
  • 10
0
votes
0 answers

Animation and black background iOS

I am using a simple animation to change(example word on UIview) like next slide, it is a animation from right to left everything on UIView. But I don't understand when, it is animating I have black background for 1 second. It is possible to change…
PatrikD
  • 379
  • 4
  • 16