---
title: ".gif files not reflecting delay changes in xcode project"  
description: ".gif files not reflecting delay changes in xcode project"  
author: "Anonymous User"  
published: 2013-06-04  
updated: 2013-06-05  
canonical: https://www.mindstick.com/forum/979/gif-files-not-reflecting-delay-changes-in-xcode-project  
category: "iphone"  
tags: ["iphone"]  
reading_time: 1 minute  

---

# .gif files not reflecting delay changes in xcode project

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),\
I am using **.[gif](https://answers.mindstick.com/qa/109657/how-to-add-a-gif-in-powerpoint)** [files](https://www.mindstick.com/articles/23302/the-importance-and-advantage-of-keeping-your-important-files-on-the-cloud) in my **[xcode](https://www.mindstick.com/blog/10962/required-resources-in-xcode-project)** project. I have replaced my **gif** with different time delays between frames. But it does not reflect the changes. The changes between frames have been done in **gif** itself. the [preview](https://www.mindstick.com/forum/429/i-want-to-get-full-path-of-lt-asp-fileupload-gt-and-then-client-can-click-the-preview-button-to-see-what-file-he-here-has-uploaded) of that .gif [file](https://www.mindstick.com/articles/59/encrypting-and-decrypting-files-using-c-sharp) [shows](https://yourviews.mindstick.com/view/81380/new-york-violent-shooting-shows-people-are-not-safe-in-night-life) the changes but on the simulator it does not reflect the same delay! \
Please help.Thanks in advance. \

## Replies

### Reply by AVADHESH PATEL

Hi Lois,\
I can provide you with a simpler solution, you can inherit this library and then you simply have to add a single method that is\

```
NSURL *url = [[NSBundle mainBundle] URLForResource:@"JuU08" withExtension:@"gif"];[SharedImageButton setImageWithURL:[ImageArray objectAtIndex:indexPath.row] placeholderImage:[UIImage animatedImageWithAnimatedGIFData:[NSData dataWithContentsOfURL:url]]];
```

Where JuU08 is the name of the gif image that you have added to your project. Here I have added the image to a UIButton in a UITableView.\
Link :- https://github.com/mayoff/uiimage-from-animated-gif\
Instead of adding multiple frames with time delays which can become tiring . \
Hope this helps you.\


---

Original Source: https://www.mindstick.com/forum/979/gif-files-not-reflecting-delay-changes-in-xcode-project

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
