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

  • Home
  • SEARCH
  • 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 3951440
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:43:53+00:00 2026-05-20T01:43:53+00:00

I’ve built a view with IB, and included a UIButton in the view to

  • 0

I’ve built a view with IB, and included a UIButton in the view to deal with ‘background taps’ (placed behind all other items in the view). Originally, I had it size for the whole screen, color set to transparent, and hooked up to the ‘backgroundTap’ method in my controller.

Crazy thing is that is seemed like 1/2 times (exactly) I’d load the app in the Simulator, that UIbutton didn’t appear. So I colored the button green and ran the app, and lo and behold, it only appears half of the time (exactly half). Meaning:

  • build app – it doesn’t show up
  • close app
  • build app – it shows
  • close app
  • build app – doesn’t show up
  • close app
  • build app – it shows
  • … and so on

I tried resetting the info on the Simulator: Build – doesn’t show, close, build – does show. Each time after resetting the Sim, I build – button doesn’t show.

Considering that it happens exactly 1/2 times, figure it must have something to do with loading information…ANY THOUGHTS? I’m a newb, so this is pretty perplexing to me.

Thanks in advance for any help/thoughts!

Best,
Jared

  • 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-20T01:43:54+00:00Added an answer on May 20, 2026 at 1:43 am

    One question to start.. Does the button exist every time and only visible half the time? Add an IBOutlet to the button and in your viewDidLoad print out the frame of the button. I’m wondering if the button IS there all the time, but perhaps it is getting pushed behind something else.

    Definitely need to clean your workspace…

    Stop the simulator (but don’t close it)
    Build Clean.
    Swap to the simulator and from the menu choose Reset Content and Settings.

    Then try to rebuild and run and see if it freaking out still.

    If so, rename that xib to something else and create a new xib exactly like it. Sometimes IB puts a xib into a weird state and you get ghosts in the machine like this.

    If that doesn’t work, then start removing things from the xib and restarting until you find the culprit. Let us know how it goes!

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

Sidebar

Related Questions

No related questions found

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.