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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:14:09+00:00 2026-06-11T02:14:09+00:00

I have an info button that appears as an overlay UIView on top of

  • 0

I have an info button that appears as an overlay UIView on top of a camera view that is not linking to the desired view controller. Nothing happens when it is touched.

Here is the code to create the button and link it

    // Create a Button to get Help
    infoButton =  [UIButton buttonWithType:UIButtonTypeInfoLight ] ;
    CGRect buttonRect = infoButton.frame;

    // Calculate the bottom right corner
    buttonRect.origin.x = 455;
    buttonRect.origin.y = 297;
    [infoButton setFrame:buttonRect];

    [infoButton addTarget:self action:@selector(presentInfo) forControlEvents:UIControlEventTouchUpInside];
    [view addSubview:infoButton];

Here is the code to create segue

- (void) presentInfo
{
InfoViewController *ivc = [self.storyboard instantiateViewControllerWithIdentifier:@"InfoViewController"];
[self presentModalViewController:ivc animated:YES];
}
  • 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-11T02:14:11+00:00Added an answer on June 11, 2026 at 2:14 am

    Try this first:
    – Set a breakpoint in:

    - (void) presentInfo
    {
    InfoViewController *ivc = [self.storyboard instantiateViewControllerWithIdentifier:@"InfoViewController"];
    [self presentModalViewController:ivc animated:YES];
    }
    

    if the program reach this point it must be a problem with the segue.

    I had some problems with button this week too. In my case there once was an other UIView over my button, so it doesn’t hit the selector.
    Or you can try and change:

    [infoButton addTarget:self action:@selector(presentInfo) forControlEvents:UIControlEventTouchUpInside];
    

    In:

    [infoButton addTarget:self action:@selector(presentInfo) forControlEvents:UIControlEventTouchDown];
    

    Also look if the button react to your touch with the alternative image.

    I hope this helps

    Oh or try and give it a UITapGestureRecognizer you make, but this is only for the real desperate solution, if nothing else works…

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

Sidebar

Related Questions

I have used the info here to add a custom button in JqGrid top
I have a JavaScript alert button that appears on the website when a user
I have a list view that show a list of items...well not all of
I have a function: $(button.btn-info).click(function() { var id=this.id; }); So, and I have to
I have 4 info, tat i get frm database. I want to view all
I've got my autocomplete plugin working perfectly... except I have certain info that I
Background info: I have a windows application (in c#) that handles a custom file
I have about 24 large cover images with hovers that reveal station info and
I'm trying to add an Info button to the More screen that UITabBarController generates
i would like to change the font that appears on the button text, i

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.