animation 1 « animation « iPhone iPad Media Q&A

Home
iPhone iPad Media Q&A
1.animation
2.audio
3.AVAudioPlayer
4.box2d
5.cocos2d
6.CoreGraphics
7.CorePlot
8.Flash
9.graphics
10.icon
11.image
12.photo
13.plot
14.sound
15.video
iPhone iPad Media Q&A » animation » animation 1 

1. How can I use Core Animation to interpolate property values over time on my own classes?    stackoverflow.com

Specifically, I am looking to use CA on properties of types other than

  • integers and doubles
  • CGRect, CGPoint, CGSize, and CGAffineTransform structures
  • CATransform3D data structures
  • CGColor and CGImage references
and in objects other than CALayers ...

2. Best 2D animation library/tech for "iPhone" style animation on WIN32?    stackoverflow.com

All, I have built a nifty demo application that displays data about our internal systems as a full-screen "billboard" style display. You could think of this as something like an application displaying ...

3. I need help with Animation Callbacks (iPhone)    stackoverflow.com

I am creating an application in iPhone and I have several UIViews and layers in it. I am doing some animations using CAKeyframeAnimation class and since the animations have to be ...

4. Need help with animation on iPhone    stackoverflow.com

I'm working on an animated clock application for the iPhone, and I have to pivot all the 3 nodes in the view, which I have obtained in the following code:

[CATransaction begin];
[CATransaction ...

5. Animate CGContextStrokeEllipseInRect    stackoverflow.com

I'm trying to animate the drawing of a circle. Something the Shazaam app is doing while recording, but much simpler.
I've got this code in the drawRect: method to draw the ...

6. speed up with blur?    stackoverflow.com

Is there a way to speed up animations using something like a blur? I have a loop which must be travelled through to represent one "increment" in my UI. When the ...

7. Improving Smoothness of Simple Animations    stackoverflow.com

I am developing my first iPhone application, and I have made it past the "machinery" and now I am wrapping up fit & finish details. I have a view that slides in ...

8. What is CGAffineTransformMakeRotation(RADIAN) exactly doing?    stackoverflow.com

I don't really understand what this function is good for. Can someone explain that (maybe with some examples)? Can I rotate an UIImageView object with this one?

9. iPhone - why isn't animation stop selector called?    stackoverflow.com

I am using the following code for calling a method once my animation stops

[UIView beginAnimations:@"swipe" context:NULL];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(transitionDidStop:finished:context:)];
[UIView setAnimationDuration:0.3f];

//My Animation

[UIView commitAnimations];
And this is the signature of the transitionDidStop method
- (void)transitionDidStop:(NSString ...

10. How can I terminate a running animation in iPhone-OS?    stackoverflow.com

I have an class "Cube" and in there is a method -rotate. The method sets the anchorPoint at the bottom left and then rotates the cube by 90 degrees. After that, ...

11. Is there a simple way to figure out, if two transforms are the same?    stackoverflow.com

I've tried this, but that doesn't work:

CATransform3D currentTransform = self.layer.transform;
CATransform3D identityTransform = CATransform3DIdentity;
if (currentTransform == identityTransform)
 NSLog(@"the same");
I really woulnd like to compare each single field in the matrix ;) Can I ...

12. Core Animation with contentsRect jerkiness    stackoverflow.com

in my (puzzle) game the pieces are drawn on-screen using a CALayer for each piece. There are 48 pieces (in an 8x6 grid) with each piece being 48x48 pixels. I'm not ...

13. How do I show the standard spin animation during a CoreLocation lookup on iPhone?    stackoverflow.com

I don't want to just use a UIActivityIndicatorView -- I want the spinning animation that you see in the Maps application while you are doing a CoreLocation lookup. Do I have to ...

14. How to implement a loading animation when navigating in a iPhone app?    stackoverflow.com

It seems like a pretty simple problem, but I have been unable to find any good answers. What I'm trying to do is to make some sort of animation while some function ...

15. Arc / Circle animation in iphone    stackoverflow.com

How would I animate a circle on the iPhone so that the arc starts at "0 degrees" and ends at "360 degrees"? Advance Thanks, Sat

16. Does iPhone OS support implicit animation?    stackoverflow.com

Example from Mac OS X:

[[aView animator] setFrame:NSMakeRect(100.0,100.0,300.0,300.0)];
I have tried something similar in UIKit, but it seems the animator method is not there for UIView. So there's no "implicit" animation?

17. change counterclockwise to clockwise with CGAffineTransformIdentity    stackoverflow.com

I have a telephone wheel. On the touchend, it goes to his position with an animation. Until the angle is less than 180°, it returns clockwise. No problem, with this code :

 ...

18. How do I use a timing function within an animation on the iPhone?    stackoverflow.com

I want to use a timing function lets say kCAMediaTimingFunctionEaseInEaseOut My aim is I have start point (X1,Y1) and end point (X2,Y2) and I want a ease function which will provide the ...

19. How do I suppress animation during AutoRotation    stackoverflow.com

I'm making an app where one of the objects needs to appear not to move or rotate during AutoRotation, but everything else needs to rotate and be repositioned. The way ...

20. How do I create an animated credits page?    stackoverflow.com

I have a UITextView that has a lot of content (e.g. credit view), and I want to create an automatic scrolling view for it (something like the credits page for Firefox) where ...

21. Tween a value in iPhone objective-C    stackoverflow.com

Is it possible to tween a variable (let's say a float from 0.0 to 2.0 over a period of time) in objective-C? Something like what TweenMax would do in flash. I guess the ...

22. TTWebController/TTNavigator invocation, not animating + dismissal problem    stackoverflow.com

Hi again everybody. I'm having a problem implementing the TTNavigator + TTWebController to capture links in styled labels and open them in the TTWebController. In my current UIViewController (not a navigation controller), in ...

23. How to open pickerview with animation(bottom to top)    stackoverflow.com

How to open pickerview with animation(bottom to top)

24. Animate leafing through?    stackoverflow.com

Is there any way to animate leafing through views to look like a real book leafing through?

25. iPhone Animation: how to anti-alias?    stackoverflow.com

I was looking at some animations in my iPhone app and felt like it was kind of ugly. And then I undertsood it: it just doesn't animate through subpixel states. So, ...

26. Do Operation Queues help out when Core Animation strikes to animate?    stackoverflow.com

Core Animation uses Background Threads. When performing heavy calculations on the main thread, CA stops animating due to its low priority threads. How could Operation Queues help out in such an ...

27. Objective C speeding up animation / object creation    stackoverflow.com

What kind of trick can I use to speed up and improve an image sequence animation? I'm using the code below, but then just running through the codes below takes a couple ...

28. PageTurn animation in iPhone    stackoverflow.com

How to make page turn animation like the Stanza app ? Earlier i was using , but its not the animation i am looking for.

   [CATransaction begin];
   CATransition ...

29. how to drag in the animation in iphone application?    stackoverflow.com

Iphone application is using the static co-ordinates to reach at some points in the application,which is based on the button event. But what i want is when i drag the item than ...

30. Is it possbile to removeFromSuperview with Animation?    stackoverflow.com

I have 2 layer is top and bottom on my program how can i remove top layer with animation or bring top layer to back is it possible?

31. animated "crawling text" on iPhone    stackoverflow.com

Does anyone know how to create a "text crawl" like that shown at the bottom of the ESPN ScoreCenter app for the iphone? Basically, there is a small bar of text at ...

32. Loading circle animation in iphone    stackoverflow.com

How can I display the loading screen animation in iphone? I mean the bars arranged in circles. So that I can use it while some of the part of my app ...

33. Activity indicator not animating=iphone    stackoverflow.com

In my application i am uploading some images to the servelet, which takes some time to complete upload. I have implemented an uiactivityviewer using IB and connected it to an outlet ...

34. iPhone/iPodTouch. What are my options for syncing movement to a soundtrack?    stackoverflow.com

What are the best strategies for syncing music to object movement? The app I envision would have an underlying soundtrack with characters animating in time to the music. What I'm after ...

35. how to speed up the animation dynamically in iPhone    stackoverflow.com

I am new to the objective c coding in iPhone. i am using below code to animate the image for 40 seconds

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:40.0];
object.transform = CGAffineTransformMakeRotation(1.57);
[UIView commitAnimations];
i need to speed ...

36. How can I accurately time animations on an iPhone inside the normal flow of a program?    stackoverflow.com

I've been using CALayer animations in my program, primarily to move around CALayers with animation on my screen. My problem is that I don't want to exit the layer-moving (card dealing, ...

37. Simple Sprite Animation on iPhone    stackoverflow.com

I am trying to do a simple animation on the iPhone and then have it stop once it is finished. The code I am currently using is:

NSArray *imageArray = [[NSArray alloc] ...

38. animate my custom number pad    stackoverflow.com

I create my own number pad view successfully and I want to simulate the default number pad appear animated effect, but it can't work fine, it can't animate as default number ...

39. NSThread plus tickertape animation    stackoverflow.com

I have a question that we might answer together i have a tickertape in my iphone app (Like those stick tickers) and i use a NSThread to keep the memory away ...

40. What are the two options that come with the core animations beginAnnimations method?    stackoverflow.com

I was wondering what they mean by:

[CustomView beginAnimations:@"whatIsThis" context:whatIsThis];  
I am just wondering what those who things do and how I would use them?
Please help!

41. Objective C - Animation Blocks, multiparameters    stackoverflow.com

I have a question... how is programmatically reached the Animation blocks?

[UIView beginAnimations:@"repositionAnimation" context:nil];

// -----------------------------------------------------------------------------    
[view setFrame:viewRect];

[view setAlpha:0];

...

...

// -----------------------------------------------------------------------------

[UIView commitAnimations];
How the messages are stored and processed on commitAnimations ...

42. iPhone: Loading data with a progress animation?    stackoverflow.com

I'm creating an iPhone app and am wondering how to have a progress animation when you're loading data? I see this a lot in applications such as Tweetie, but haven't been ...

43. animation starts when tilting    stackoverflow.com

i like to start this animation when tilting. it doesn't, so i suppose some essential code is missing. please help:

- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
 flap.animationImages = [NSArray arrayWithObjects:
   ...

44. smooth pendular animation with Core Animation Framework    stackoverflow.com

im trying to do an animation with an uiimageview. in this view is an image with an arrow, that i want to rotate about 45 degrees back and forward very smoothly like ...

45. How to know when a Core Animation has finished?    stackoverflow.com

say I have...

[UIView beginAnimations:nil context:NULL];  
[UIView setAnimationDuration:0.5];

CGPoint position = myObject.center;
position.x = position.x - 10;

myObject.center = position;

[UIView commitAnimations];
Core animation happens on a separate thread is there a way to know when an ...

46. Animate show/hide elements on iPhone    stackoverflow.com

I try to fade the datepicker in and out smootly based on the switch setting on a view like below. I have tried the following in my view controller, but that ...

47. Animation code doesnt animate?    stackoverflow.com

I have a view with which I have a button calling the following method. The view hides/shows but without any animation

- (void) displayEvent:(id)sender {

    [UIView beginAnimations:nil context:NULL];
  ...

48. Core Animation problem on iPhone    stackoverflow.com

I'm new to iPhone development, and doing some experimentation with Core Animation. I've run into a small problem regarding the duration of the animation I'm attempting. Basically, Ive got a view with ...

49. Reverse playback of a CATransform    stackoverflow.com

I have an animation created with Core Animation for my UIImageView, but i would like to know if its possible to play the animation in reverse/backwards mode. Anyone got an idea? ...

50. How to make CGFloat using double type in CGRect?    stackoverflow.com

I am doing iPhone development and how to make CGRect return double value? I found there was a macro "#define CGFLOAT_IS_DOUBLE", but how can I change it?

51. setAnimationRepeatAutoreverses not behaved as I expected    stackoverflow.com

I am starting to learn to use UIView animation. So I wrote the following lines:

 [UIView beginAnimations:nil context:NULL];

 [UIView setAnimationDuration:2.0];
 [UIView setAnimationRepeatCount:2];
 [UIView setAnimationRepeatAutoreverses:YES];

 CGPoint position = greenView.center;
 position.y = ...

52. Where is core animation defined?    stackoverflow.com

I cant figure out where core animation on iPhone OS 3.1.2 is defined. Anybody know?

53. On Collision Display Animation Code? (iPhone)    stackoverflow.com

This is for iPhone Developers. What would be the code for an event handler? For my project I want it so that on collision display an animation for 3 seconds....How would ...

54. New to animation in Iphone    stackoverflow.com

I am fairly new to transition and animation methods in Iphone. Can somebody pl. guide me the basics of transition and Animation in Iphone. This is needed frequently in my Apps. ...

55. iPhone animation based on touch    stackoverflow.com

I am working on an iPhone app at the moment and I am struggling with some animation. Basically I have 109 frames for dragging about a man on screen, so what I ...

56. jerky animation using Core Animation    stackoverflow.com

In my iPhone app, I am trying to get some red and white stripes that are scrolling across the screen to animate smoothly when the speed of the stripes gets high. ...

57. iPhone User Interface Design    stackoverflow.com

Hey guys, I've just had a nagging question for a while regarding iPhone app user interfaces. For example, consider WeightBot's User Interface. I am wondering, how are most of ...

58. how to implement water animation in iphone(ripple animation)?    stackoverflow.com

I have implement one game application .In that game i want to implement wateer animation.PLease give me idea about that. same like:http://www.heikobehrens.net/2009/10/02/burlington-ducky-iphone-app/

59. animation: make water wave    stackoverflow.com

I would like to build a simple animation for a school project. I want to make water wave within a box in such a way that tilting the device causes the water ...

60. Trigerring other animation after first ending Animation (Objetive-C)    stackoverflow.com

I have a simple animation which simply modify the position of a button:


[UIView beginAnimation:nil context:nil];
[UIView setAnimationsDuration:3.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
mybutton.frame = CGREctMake(20, 233, 280, 46);
[UIView commitAnimations];
I want to perform some other animations when this ...

61. iPhone Wait For Animation Ending    stackoverflow.com

In an iPhone application, I try to catch animation endings using setAnimationDidStopSelector. I try to suspend code execution until animation ends. I have tried this; set a global BOOL variable, set ...

62. what are the animation formats supported by iphone?    stackoverflow.com

i have an flash based animation.but since iphone doesnt support flash.which format can i convert it to other than gif? (gif doesnt support audio)

63. How to create an own animation timing function?    stackoverflow.com

In UIView animation blocks I can specify timing curves like UIViewAnimationCurveEaseOut and so on. Is there a way of providing an own timing function to core animation, which behaves different from ...

64. animation in one direction    stackoverflow.com

i like to animate my image "finga" not centered but from left or right:

[UIView beginAnimations:nil context:nil];                ...

65. iPhone - how to make delete animation like Notes app    stackoverflow.com

I want to make an animation, like the deleting a note in iPhone Notes app. But here I want to do it for Tabbar. So deleting a view (something shows in ...

66. Chaining Animations (iPhone / MonoTouch)    stackoverflow.com

I'm trying to slide some (custom) tab-like buttons into view. I don't want them all to move at the same time. Also, they shouldn't move one at at time ...

67. Stall in animation    stackoverflow.com

I am using this code from this site http://ramin.firoozye.com/2009/09/29/semi-modal-transparent-dialogs-on-the-iphone/ to show a modal view and remove it. It displays fine ie drops in from the top but when being removed it ...

68. prevent navigationbaritem from animating in iphone    stackoverflow.com

I have a navigation bar which i push 2 navigationBarIems without animation (animate:NO). I am animating the transition from views, so i don't want those items to animate atomatically. The problem is ...

69. iPhone animation: how do I animate the filling up of an area?    stackoverflow.com

Consider a circle. Now consider a radius of the circle, drawn from the center of the circle towards the right. Now imagine that the radius is rotating about the center of ...

70. Recommended Reading for iPhone Core Animation    stackoverflow.com

Can anyone here recommend any good books for getting my head around Core animation? I've been through the Apple docs and while I'm sure it's all there, I haven't been able to ...

71. iphone animation - catch notification    stackoverflow.com

I'm using following lines of code to animate:

CATransition *animation = [self getAnimation:dirString];
    [[self view] exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
    [[[self view] layer] addAnimation:animation forKey:kAnimationKey];
After end of animation, I ...

72. Need some guidelines on iPad animation programming    stackoverflow.com

I'm creating an interactive e-book for the iPad. This book will contain multiple pages that will consist of a lot of animations (frame and motion animations), transitions,... I was wondering what ...

73. How do I sync recorded voice to animation on the iPhone    stackoverflow.com

I want to record voice and sync that up with animation on the iphone as a user touches the screen. Are there apis that will help me accomplish this? ...

74. iPad iTunes Animation    stackoverflow.com

Within the iTunes Music Store app on the iPad, if you select an album, a modal view flips out of the album over to the middle of the screen. Is this ...

75. JQTouch link with no animation    stackoverflow.com

Im building a web app using JQTouch and have been very impressed with it so far! I'm currently having a little problem in that I now need to link between certain ...

76. Performing selectors on main thread with NSInvocation    stackoverflow.com

I want to perform animation on main thread (cause UIKit objects are not thread-safe), but prepare it in some separate thread. I have (baAnimation - is CABasicAnimation allocated & inited before):

SEL ...

77. Wait before execute istruction    stackoverflow.com

I wan't to perform an animation before quitting a view. The problem is that if I write this code:

[self animationMethod];
[self removeFromSuperview];
the animation is not presented because the removeFromSuperview instruction is immediatly ...

78. Animation on the iPhone    stackoverflow.com

I am coming from a long spell as a Flash developer, and find simple code-based animation on the iPhone much more difficult than in Flash using actionscript. There are several excellent ...

79. Create an animation which will run on any device including iPhone    stackoverflow.com

I have a requirement as below. In my application, user will select 5 phots from album and will place them on 5 different views. If user wants to see them one by ...

80. Zombie CADisplayLink?    stackoverflow.com


Is it possible that a CADisplayLink gets called one or two more times even after being invalidated?
It looks that way to me, and this is causing me a problem because the ...

81. how to load the pdf through programming with animation in iphone    stackoverflow.com

how load a pdf into iphone and my pdf is of 200 pages then it should allow to turn the pages as we do with while reading book manually ...

82. iphone - wrong animations    stackoverflow.com

I am building a book where I will use the page curl animation to flip the pages, something like this:

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.45f];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:NO];
[UIView commitAnimations];
I will use curl ...

83. Why do I need to do this and is there a better way? Animation blocks on iPhone app OS4    stackoverflow.com

So I have some animation blocks to create some very simple animations on my app (eg. a wheel spinning continuously). This is the code for the animation (I have changed if ...

84. Cross Disolve working on iPhone but not iPad    stackoverflow.com

I have the following code that gets called after the view loads. It works perfectly on the iPhone, but appears to do nothing at all on the iPad. I ...

85. iPhone change height with animation, not downward sweep    stackoverflow.com

I am using the code:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:0.3];
[info setFrame:CGRectMake( 0, 96, 320, 384)];
[UIView commitAnimations];
to have an animation of the object "info" to change its heght to 384... Nothing else is ...

86. Please explain this Objective-C code    stackoverflow.com

ref1view.hidden = NO;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.25f];
[ref1view setAlpha:([ref1view alpha] == 1.0f) ? 0.0f : 1.0f];
[UIView commitAnimations];
Can anyone please give me a breakdown of how this works? Specifically this line:
[ref1view setAlpha:([ref1view alpha] == ...

87. Multiple Animations to a Sprite    stackoverflow.com

How to Add Multiple Animations to a Sprite, (i.e) one animation after another finished. Also how to remove the old animation from the sprite. Thank You.

88. -setStatusBarHidden:animated: is deprecated    stackoverflow.com

At the start of my app, the status bar is hidden, due to the Info.plist setting called 'Status bar is initially hidden'. Later on I want to show the status bar ...

89. Displaying text in an animated way!    stackoverflow.com

I want to display a series of text in an animated way one after the other i.e. i want something as displayed in the follwing link.. http://www.tcs.com/homepage/Pages/default.aspx In the above link ...

90. Excluding from animation block    stackoverflow.com

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
...
[UIView commitAnimations];
For example I need to animate frame's width conditionally, along with the rest of other modifications which are mandatory. The reason I can't put the code out ...

91. Why does animationDidStart: not work?    stackoverflow.com

I'm tring to get notified when animation starts and stops, so my code is:

[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:)];
[UIView setAnimationWillStartSelector:@selector(animationDidStart:)];
I do implement these 2 methods, but animationDidStop:finished: got notified, and animationDidStart: did not. Here's my ...

92. App with expanding animated line in iOS ... howto    stackoverflow.com

The basic idea
is very easy. Simplified you could say... a snake like line realized by a let's say 3px line is expanding across the screen collecting and interacting with different stuff, ...

93. Animate till a certain index    stackoverflow.com

I have an array of 1000images. I need to sometimes animate till a certain index, but not everytime. Is there a way to specify this in the [myImageView startAnimating]? Thanks

94. Problems moving animation to iOS4 blocks    stackoverflow.com

I have a working view animation, that curls up a container view, while the containerview.subviews changes. (before the animation a UITableView will be shown, after it is a custom view, name ...

95. Elastic Animation - the math behind it    stackoverflow.com

I want to make an elastic popup animation (in the iphone google maps app, kind of like the popup) Does anybody have an idea of what the math formula would look like ...

96. How to show Book Opening and loading animation as in iBooks?    stackoverflow.com

I am trying to show a book opening animation as in iBooks. Any inputs will be helpful.

97. Animating text on iOS    stackoverflow.com

I'm writing an iOS app which needs to generate and animate individual text characters dynamically. The actual text being displayed will be dynamic and I want to use layers and masks ...

98. Book for Core Animation for the iPhone    stackoverflow.com

I want to learn "Core Animation" for the iOS not for the Mac. Two books exist: PragProg: Core Animation AW: Core Animation Simplified Have you read one of them (or both)? do you have a ...

99. Core Animation difficulties with spinning dial control (very detailed)    stackoverflow.com

Im trying to create a spinning dial control, basically a set of 6 digits that spin around and around to give the effect of a spinning number meter (similar to your ...

100. water animation in iphone app    stackoverflow.com

I want to show water flowing from one container to another in iphone app. Can some suggest me how to do it .. by open gl or by simply couple of images?? Plzz ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.