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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:44:16+00:00 2026-06-05T13:44:16+00:00

I am developing an app in which what i want is when a user

  • 0

I am developing an app in which what i want is when a user clicks on an image in an image view

An Action should be fired(like when a button is clicked).

I don’t want button image. I just want an image view and action on it.

Kindly 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-05T13:44:19+00:00Added an answer on June 5, 2026 at 1:44 pm

    According to your comment, if you want to know about image’s index then you can do this by tag property of image view. Assign your image view’s tag property as per your need and get the tag on Touch event.

    For example :

    Add UITapGestureRecognizer

    ITapGestureRecognizer* tap = [[UITapGestureRecognizer alloc] initWithTarget:self
                                                                    action:@selector(tap:)];
    tap.numberOfTapsRequired = 1;
    
    [self addGestureRecognizer:tap];
    
    [tap release];
    

    Use its delegate method : - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event

    // called when touch is began or when user touches 
    - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
    {
        UITouch *touch = [touches anyObject]; 
    
        int indexOfImageView = touch.view.tag;
    }
    

    Hope it helps you…

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

Sidebar

Related Questions

I'm developing a ASP.Net MVC3 app which will have few hundred videos. I want
I am developing an app which has 9 image views in a 3x3 matrix.
Hi am developing a app in which i want to send message automatically to
Am developing an app which am using a dashboard. I want the dashboard to
I'm developing an app in which the user could subscribe for a feature to
I am developing third party app. For that, I want to store user related
I'am developing an app which requires drawing the user signature. On click of a
I'm developing a simple app in which I want to maintain a session in
I am developing a app in which i have rotate a delete button when
I am developing an iPhone app which uses Settings.bundle to let the user choose

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.