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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:09:33+00:00 2026-05-24T11:09:33+00:00

I have a custom UIButton that has the label Name. When the user clicks

  • 0

I have a custom UIButton that has the label “Name”. When the user clicks this button, it loads another View that displays a list of names, and tapping a name pops this View off, and updates the UIButton with the selected name.

That part works. What doesn’t work is if the user doesn’t select a name from the View, but instead just hits Back. The view is popped off, but now the UIButton text “Name” is removed, and the button text is completely blank. How do I stop the text label from being erased?

I don’t have any code that updates the UIButton label except if a row is tapped (didSelectARowAtIndexPath) so I don’t understand how the label “Name” is being cleared upon loading a new View. Note that I have three of these buttons w/similar functionality, and only the text of the respective button is erased when tapped – the other two aren’t impacted.

  • 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-24T11:09:34+00:00Added an answer on May 24, 2026 at 11:09 am

    Set a breakpoint in your didSelectARowAtIndexPath method and see where it is being called from. You can read Apple’s Debugging Applications document for more on using XCode’s debugger, or you can just google for “xcode debugging tutorial”.

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

Sidebar

Related Questions

In IB I have a view with a UIButton of Type Custom, it has
I have a custom button, subclassed from UIButton that is initialised as below (obviously
I have created a custom button called ModuleUIButton which inherits from UIButton . This
I have a custom annotation view on the map, which has a UIButton in
I have a very simply subclass of UIButton that will fire off a custom
I have a custom UIButton in my viewcontroller that should have either the image
I have a custom UIbutton in every cell of my tableview. This UIbutton works
I've created a custom button called TaskUIButton that inherits from UIButton. The only difference
I have an iPhone UIButton (Custom) which has a background image and text. When
I have a custom UIButton class in my IPhone navigation application. When the user

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.