Zaask
Zaask

Reputation: 655

What to use for animation for iPad? SVG? GIF? Other?

I am making an app for the iPad/iphone and I want to have a star that tinkles every now and then and/or a rocket that shoots up randomly . What would be the best way to do that? Someone told me to use SVG and another told me that GIFs would be just fine.

Upvotes: 1

Views: 1394

Answers (3)

Dan Ray
Dan Ray

Reputation: 21893

UIView animations are pretty elegant, though if you're code-phobic they're probably not for you. Don't let the affine transformation stuff scare you, it's simpler than it looks.

Upvotes: 0

blackjack75
blackjack75

Reputation: 513

UIImageView has a property animationImages which can be an array of UIImages. That'll certainly be lighter than a web view!

Upvotes: 1

Cory Powers
Cory Powers

Reputation: 1140

SVG isn't going to work unless you are displaying the content in a UIWebView, you can either build the views using drawing code and perform the animations with core animation or use images, the first being far more efficient. Check out Apple's Core Animation Guide for more information.

Upvotes: 3

Related Questions