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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:31:39+00:00 2026-05-26T06:31:39+00:00

I have a dynamically created list of labels and I am using GestureRecognizer for

  • 0

I have a dynamically created list of labels and I am using GestureRecognizer for each of the labels to detect touches/click on them. I couldn’t use UIButton as I wanted to pass some text which is unique to each label to the touch event handler and UIButton would not allow text to be passed as userinfo. I cannot use UIButton.tag to pass the additional info.

Now I want the UIButton like glow effect on touch on my UIlabel. If there are other ways to notify a user that a label was touched, that work too. I was alo thinking of using some kind of quick animation or jiggling effect. Any ideas or workarounds?

Thanks in advance.

  • 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-05-26T06:31:40+00:00Added an answer on May 26, 2026 at 6:31 am

    Why dont you create buttons programmatically and make the button type as custom. Like so –

    UIButton *sampleButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [sampleButton setBackgroundImage:[[UIImage imageNamed:@"redButton.png"] stretchableImageWithLeftCapWidth:10.0 topCapHeight:0.0] forState:UIControlStateNormal];
    [sampleButton setTitle:@"My Button"];
    [sampleButton addTarget:self action:@selector(buttonPressed) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:sampleButton];
    

    Here we have defined what the button should look like UIControlStateNormal. You can define what it should look like for UIControlStateHighlighted.

    What i want to say is that using uibuttons you can get what you need. Dont have to use uilabels.

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

Sidebar

Related Questions

I have a dynamically-created list of strings called 'variables'. I need to use these
What I have is a dynamically created list thats built off a each loop.
i have a unordered list of links, which are dynamically created by Ajax, and
I have a list of textboxes created dynamically accroding to the user selection on
I have a page containing a control called PhoneInfo.ascx. PhoneInfo is dynamically created using
I have the need to store a list/collection/array of dynamically created objects of a
I have a list of tab items that have views dynamically added to them.
I have a need to store a list of dynamically created objects in a
On my page, I have a dynamically generated list of radio buttons (created with
i have a list of dynamically created check boxes. when the state of the

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.