开发者

Pulling image path from animation [duplicate]

开发者 https://www.devze.com 2023-04-12 23:57 出处:网络
This question already has an answer here: Fetching image From Animating UIImageView (1 answer) Closed 9 years ago.
This question already has an answer here: Fetching image From Animating UIImageView (1 answer) Closed 9 years ago.

I have a standard image animation for a simple banner. I'm trying to make it clickable so when the user clicks on the banner(a featured article list), it takes them to that article.

To achieve this in 开发者_Python百科our Android version, we have a runnable that allows us to change both the image resource and the reference link at the same time.

I have the animation set up like this:

mBannerImageView.animationImages = newArray;
mBannerImageView.animationDuration = 10;
mBannerImageView.animationRepeatCount = 0;
mBannerImageView.startAnimating;

Is there a way/how can I pull the resource name from the image view at the current time? My thought is to have the IBAction for it to pull the resource and direct you from there(matching the image name to something saved in our coredata). If there isn't a way, what would be the best approach for something of this nature?

Thanks for the help!


If you wish to set up image animation, so I have some html code which through you are easily generate image animation. The steps below show you how to create a image animation.

  1. Create a simple animation and save the images as a series of JPG images.

  2. Build an HTML page with the image displayed somewhere on the page using the tag.

  3. Save the file as logo1.htm. Within the tag, include a tag that looks like this: With the HTML file still open, change the tag so that it displays the second frame of your animation, and change the tag to open logo3.htm and save the file as logo2.htm. Repeat this process for all frames of the animation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号