Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7963973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:45:19+00:00 2026-06-04T05:45:19+00:00

Possible Duplicate: UIImageView – How to get the file name of the image assigned?

  • 0

Possible Duplicate:
UIImageView – How to get the file name of the image assigned?

I can’t figure out how to find what image file an image view is displaying or if it is being displayed at all. For example lets say I have an image view. By the tag of the image view I want to be able to determine what file (the name of the file) is being displayed through the image view?

I can’t seem to find an answer to what I thing is a very simple question…

I know I can change the image of an imageview like this…

[(UIImageView*)[self.view viewWithTag:ImageViewTag] setImage:[UIImage imageNamed:imageTitle]];

But how can I see what image an image view is already displaying?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:45:21+00:00Added an answer on June 4, 2026 at 5:45 am

    As the link in Ben’s comment explains, there is no native way to do this. However, you could easily create this behavior yourself.

    You can subclass UIImageView and add a new instance variable:

    NSString* imageFileName;
    

    Then you could override setImage, first setting imageFileName to the filename of the image you’re setting, and then calling [super setImage:imageFileName]. Something like this:

    -(void) setImage:(NSString*)fileName
    {
       imageFileName = fileName;
       [super setImage:fileName];
    }
    

    Just because it can’t be done natively doesn’t mean it isn’t possible 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: create UIImageView with portion of image file I have setup a series
Possible Duplicate: Learning to write a compiler I looked around trying to find out
Possible Duplicate: Reading through file using ifstream I'm trying to find a way to
Possible Duplicate: Can you call Directory.GetFiles() with multiple filters? Does it possible to get
Possible Duplicate: Where can I find a web-project “security checklist?” i was just wondering
Possible Duplicate: How can I get device ID for Admob My activity has a
Possible Duplicate: Find out the instance id from within an ec2 machine I am
Possible Duplicate: How can I convert a list<> to a multi-dimensional array? I want
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: Can main function call itself in C++? I found this problem very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.