title: How to get which image has been set for the UIButton
body: <p>In my app I have a context where I am changing the  images of the UIButton using the NSTimer like follows</p>
  
  <pre><code> [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(LoadImageToTheAdButton) userInfo:nil repeats:YES];
  
  
  -(void)LoadImageToTheAdButton
  {
       NSString *strPath = [arrPaths objectAtIndex:0];
          strPath = [strPath stringByAppendingPathComponent:@"Folder"];
          strPath = [strPath stringByAppendingPathComponent:[arrAdImgNames objectAtIndex:intAdImgIndex]];
          UIImage *imgForAdBtn = [[UIImage alloc]initWithContentsOfFile:strPath];
          [btnAd setBackgroundImage:imgForAdBtn forState:UIControlStateNormal];
  
          if(intAdImgIndex &lt; [arrAdImgNames count]-1)
          {
              intAdImgIndex++;
          }
          else
          {
              intAdImgIndex = 0;
          }
  }
  </code></pre>
  
  <p>Now on click of the button *<em>i need to know which image was set on the button I mean, I need the image name *</em></p>
  
  <p><strong>I need that because based on that image I am loading some links,</strong></p>
  
  <p>How can I do that can any buddy help me out please,,</p>
  
  <p>Thanks in advance</p>