Have a reloadData for a UITableView animate when changing

I have a UITableView that has two modes. When we switch between the modes I have a different number of sections and cells per section. Ideally, it would do some cool animation when the table grows or shrinks. Here is the code I tried, but it doesn’t do anything: CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil … Read more

How to run two jQuery animations simultaneously?

Is it possible to run two animations on two different elements simultaneously? I need the opposite of this question Jquery queueing animations. I need to do something like this… $(‘#first’).animate({ width: 200 }, 200); $(‘#second’).animate({ width: 600 }, 200); but to run those two at the same time. The only thing I could think of … Read more

How to animate the change of image in an UIImageView?

I have an UIImageView with an image. Now I have a completely new image (graphic file), and want to display that in this UIImageView. If I just set myImageView.image = newImage; the new image is visible immediately. Not animatable. I want it to nicely fade into the new image. I thought maybe there’s a better … Read more

How to make a smooth image rotation in Android?

I’m using a RotateAnimation to rotate an image that I’m using as a custom cyclical spinner in Android. Here’s my rotate_indefinitely.xml file, which I placed in res/anim/: <?xml version=”1.0″ encoding=”UTF-8″?> <rotate xmlns:android=”http://schemas.android.com/apk/res/android” android:fromDegrees=”0″ android:toDegrees=”360″ android:pivotX=”50%” android:pivotY=”50%” android:repeatCount=”infinite” android:duration=”1200″ /> When I apply this to my ImageView using AndroidUtils.loadAnimation(), it works great! spinner.startAnimation( AnimationUtils.loadAnimation(activity, R.anim.rotate_indefinitely) ); … Read more

UIView Infinite 360 degree rotation animation?

I’m trying to rotate a UIImageView 360 degrees, and have looked at several tutorials online. I could get none of them working, without the UIView either stopping, or jumping to a new position. How can I achieve this? The latest thing I’ve tried is: [UIView animateWithDuration:1.0 delay:0.0 options:0 animations:^{ imageToMove.transform = CGAffineTransformMakeRotation(M_PI); } completion:^(BOOL finished){ … Read more