Questions tagged [uianimation]

411 questions
2
votes
1 answer

swift animate all added views alpha

I want to animate all views (based on tag) with an alpha change, but I am getting a "cannot assign alpha to view" error. What would be a good way to do this? All the views have an alpha of 0 upon being added as a subview of myCustomView func…
haitham
  • 3,398
  • 6
  • 21
  • 35
2
votes
2 answers

Image rotation in iOS

I want to rotate an image by 360 degree delay for 2 or 3 seconds again rotate it by 360 degree and the process should continue on. Any possible suggestions for the same ? Actually tried Cgaffinetransfom but its not working for 360 degree .
Vaisakh Vinod
  • 267
  • 2
  • 14
2
votes
1 answer

Rotate view on y,z axis simultaneously from one of it's End

Hi guys I am trying to rotate view on y,z axis I am successful with the following code but I want to rotate this on its end, now it is rotating from centre, I searched and I got anchorPoint property of layer to make it rotate but it makes unwanted…
Lachlan
  • 43
  • 4
2
votes
1 answer

Swift- animate CAshapeLayer stroke color

I'm trying to find a way to animate the color of the stroke that I am creating circleLayer = CAShapeLayer() circleLayer.path = circlePath.CGPath circleLayer.lineCap = kCALineCapRound circleLayer.fillColor =…
Roi Mulia
  • 5,626
  • 11
  • 54
  • 105
2
votes
1 answer

UITableviewcells unwanted animation from the side

I am trying to animate a tableview on a view that uses autolayout. I am able to animate the tableview fine but for some reason there is a unwanted sideways animation when doing so. The first animation closes the top tableview works fine. However the…
pls
  • 1,522
  • 2
  • 21
  • 41
2
votes
1 answer

How to animate a drawn line in Objective C?

I am trying to animate drawn objects, for example I have drawn a line with this approach: UIBezierPath *path = [UIBezierPath bezierPath]; [path moveToPoint:CGPointMake(Center.x, Center.y)]; [path…
Shamy
  • 723
  • 1
  • 8
  • 13
2
votes
1 answer

Custom Transition gives "Unbalanced calls to begin/end appearance transitions" Error

I used the code shown below to present a new view controller in a seamless sliding motion. The actual animation works perfectly but when the animation has finished, all of the views disappear and i am left with a blank screen. There is an error…
Jack Chorley
  • 2,309
  • 26
  • 28
2
votes
2 answers

Prevent animation from triggering if focus goes from a UITextField to another

I'm currently trying to do a login screen for an app. It is composed of a big logo, and under it are two textfields for login and passord, and a button. When a textfield has focus, there is nice animation that makes all the elements go up so they…
Pierre
  • 372
  • 2
  • 16
2
votes
1 answer

mute And play the background song but not showing mute image?

I am trying to play background song it get the success but I placed one play button and I want to change image of my button as per some condition, but it is not showing the mute image. How do I animate the button to do this. this is my code…
RameshIos
  • 301
  • 1
  • 4
  • 13
2
votes
2 answers

Animating custom view half way the screen with an image in it - abrupt animation

In one of my views I have a bottom bar. A tap on this view animates a temporary cart half way to the screen. Now, where there is no item in the temporary table I show a no data overlay which is nothing but a view with an empty cart image and text…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
2
votes
1 answer

ios 7 UIView animateWithDuration: .. runs immediately

I have trouble with method for animation I've created my own CalloutBubble for GoogleMap @interface CalloutView : UIView @property (nonatomic) MapMarker *marker; @end @implementation { UIView *titleView; UILabel *titleLabel,…
user3095583
  • 75
  • 1
  • 7
2
votes
2 answers

Smoothest Way To Implement Back to Back UIAnimations

I need to have my character jump (increase the origin.y by 50 and reverse) in a game I am creating. So far I have come across two ways of doing this: Method 1: [UIView animateWithDuration:1.0 delay:0.0 …
carloabelli
  • 4,289
  • 3
  • 43
  • 70
2
votes
2 answers

Animate UIImageView from center to 20 points from the top of parent UIView using AutoLayout

The animation by itself works when I use a constraint on the distance between the UIImageView and the top of the parent UIView without vertical and horizontal centering. The constraints on the UIImageView: Width: 240 Height: 128 Top space to Top…
Pieter
  • 1,751
  • 3
  • 30
  • 65
2
votes
2 answers

create animation in iOS project like Adobe after effect

I have to create the same animation like http://dribbble.com/shots/1078726-Animated-UI-AE-giveaway in my iOS application. Is there any iOS SDK for the same which can be used for this? Any help would be appreciated
Khushboo
  • 1,208
  • 1
  • 8
  • 19
2
votes
1 answer

Animate sine wave

i'm trying to animate a sine wave in a small frame, i have searched a lot on SO and on the web, but the only goal that I was able to reach it's draw a static sine wave that translate from one side to another side, but doens't want a translation i…
Piero
  • 9,173
  • 18
  • 90
  • 160