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 8408353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:36:33+00:00 2026-06-09T23:36:33+00:00

Is this possible? For example I have: pin.image == [UIImage imageNamed: @Bpin_map] but I

  • 0

Is this possible? For example I have:

pin.image == [UIImage imageNamed: @"Bpin_map"]

but I need to check for Apin_map and more. Is there a way to compare pin.image to a UIImage with a name that ends in _map?

  • 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-09T23:36:34+00:00Added an answer on June 9, 2026 at 11:36 pm

    I am going to assume you understand already the ins and outs of comparing strings (filenames) and the real problem here is that UIImage does not have a property to contain the filename from which the data was loaded… so:

    use objc_setAssociatedObject() to store the name like this:

    objc_setAssociatedObject(pin.image,"imageName",@"Bpin_map",OBJC_ASSOCIATION_RETAIN_NONATOMIC);
    

    then you can retrieve the name again using

    NSString* filename = (NSString*)objc_getAssociatedObject(pin.image,"imageName");
    
    if([filename hasSuffix:@"_map"])
    {
     // success!
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I try to implement this simple-as-possible example: Update Content with AJAXRefreshRequest it does
Is this possible? example: $('a.change').click(function(){ //code to change p tag to h5 tag });
Is this possible to change bundle structure in Symfony 2, for example: MyBundle EntityName
for example, I want to add this to jsfiddle.net jQuery Validation is this possible?
Is it possible to re-write (Apache Mod-Rewrite) a URL from this: http://www.example.com/view.php?t=h5k6 to this
Is it possible to compare the attribute value in jQuery? example if( $(this).[ attribute
say for example I have this code in my activity: public void onCreate(Bundle savedInstanceState)
Can you trigger click on URL with hashtag? For example: I have this link:
For example I have this css class: .class{ background:#FFF; border:1px solid #ccc } And
I'm new to xml in .net, And I have this requirements that i need

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.