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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:19:51+00:00 2026-06-08T17:19:51+00:00

I want my program to be like this if ([UIImageViewObject identifier]==@heyItsMeYeaCoolDude) { do some

  • 0

I want my program to be like this

if ([UIImageViewObject identifier]==@"heyItsMeYeaCoolDude")
{
    do some methods
}

Whenever I do this though my programs crashes saying:

2012-07-29 19:09:58.401 Bridges[2711:f803] -[UIImageView identifier]: unrecognized selector sent to instance 0x8874f70

With a bunch of crap after it.

In my storyboard, I typed heyItsMeYeaCoolDude under label in the identity inspector, and now my program is complaining.

I know I could use tags also, but I’m already using my images tag for something else, help!

  • 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-08T17:19:52+00:00Added an answer on June 8, 2026 at 5:19 pm

    In response to the suggestion you made in the comment below your question, @ownageGuy, an answer to the question you pose:

    You’re welcome to subclass anything you like. Subclassing UIImageView is a perfectly acceptable solution to this problem. You might also consider the container pattern; ie. create a class which contains an instance of a UIImageView and an NSString for the identifier. Then even if there did happen to be a detriment to subclassing UIImageView, as you fear, it would be eliminated.

    @interface UIImageViewContainer : NSObject
    {
        UIImageView* imgView;
        NSString* identifier;
    }
    

    Then you create an object of type UIImageViewContainer, set imgView to the appropriate UIImageView, and store the identifier string inside identifier.

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

Sidebar

Related Questions

I want to use my program like this: ./program -I /usr/include/ /usr/bin/ /usr/local/include/ ...
I want a program to do one thing if executed like this: cat something
How can I execute an external program like an exe file? I want to
I want to program an Add-Window to my application, much like the Add Contact-window
I want to execute a program which takes in 1 text file(say like Text.exe),
On my program icon i want to show how many show a number, like
In a Ruby 1.9 program, I want to format the current time like Thu
I don't know how to code this but i want program to skip or
i want to parse something like this in my lexer: ( begin expression )
Let's say I have a function that looks like this: public void saveBooking(/* some

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.