Jump to content

How to add animation image to UIView for iphone


9 posts in this topic

Recommended Posts

Just create a GIF from them and put them into an imageview, then. And you wouldn't need to create different views with the NSTimer method, you would just need one UIImageView and continuously call setImage: to give it the new image.

Link to comment
Share on other sites

Yup, there is an easy way to do this. Use UIViews' animation stuff

 

In developer documentation, lookup "setAnimationBeginsFromCurrentState:" all the uiview animation stuff will be there too :rolleyes:

 

Stroke: If you are making a game, having a gif is pointless; it will always display the same thing; you cannot choose how to move it.

Link to comment
Share on other sites

Just create a GIF from them and put them into an imageview, then. And you wouldn't need to create different views with the NSTimer method, you would just need one UIImageView and continuously call setImage: to give it the new image.

 

thanks I will try to use what you say, specially setImage!

 

Yup, there is an easy way to do this. Use UIViews' animation stuff

 

In developer documentation, lookup "setAnimationBeginsFromCurrentState:" all the uiview animation stuff will be there too :)

 

Stroke: If you are making a game, having a gif is pointless; it will always display the same thing; you cannot choose how to move it.

 

I had try to read the documentation about setAnimationBeginsFromCurrentState,

 

but I can't find out how to load other images inside,

 

it only work on a single image animation.

 

Do I miss something?

Link to comment
Share on other sites

Hmm. I dunno

 

I've never really used OpenGL before, but that may be one of the solutions. That or Quartz.

 

Quartz would be the easiest or even core graphics.

 

Apple has great documentation on all of these

Thanks I will check it!

Link to comment
Share on other sites

 Share

×
×
  • Create New...