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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:01:47+00:00 2026-06-02T00:01:47+00:00

Is there any method to tell a UITableView to not release cells when they

  • 0

Is there any method to tell a UITableView to not release cells when they become not visible?

I’m asking this because I have this problem:
I have an UITableView used as an “insert View”. Inside the cells I have many UITextViews. When I push the UITableView, I send “becomeFirstResponder” to the first cell, to start the view with the keyboard opened. This works correctly.

But, If I scroll down, when the first cell become not visible, the keyboard close itself.
Note: the UITextView associated is a property retain and it correctly remains allocated, simply the cell disappear and the UITextView seems to resign first responder.

I know that I can check when the UITextView comes back visible and send another becomeFirstResponder, but I’d like to know if I can reach my goal with the first request 🙂

Thank you
Regards
Fabio

  • 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-02T00:01:49+00:00Added an answer on June 2, 2026 at 12:01 am

    Here some new informations I’ve found:

    I saw that the Keyboard was closing only the first time. Example: The view was loaded with the UITextView as the firstResponder. Scrolling, the keyboard would close.
    But, after tapping on the UITextView again, the keyboard would open again and then never close, even if scrolling again.

    Looking for understanding the reason, I discovered this:

    • In the “viewDidLoad” I was setting the first responder
    • in the cellForRowAtIndexPath I was adding the UITextView as a subview
    • the cellForRowAtIndexPath is called after the ViewDidLoad

    When the UITextView was resigning first responder, I saw that it was happening because the UITableView was searching for that particular cell calling the CellForRowAtIndexPath method.
    But, After tapping again, the CellForRowAtIndexPath was called only for other cells, not the selected one. It seemed that, if the UITextView was setted as the first responder AFTER the UITableView setup, the cell was retained even if not visible.

    Then, I tried to move the “becomefirstresponder” in the “viewDidAppear” (called AFTER the uitableview setup) and then, magically, the problem was solved 🙂
    The cell is no more released if the UITextView inside is the first responder.

    The only remaining problem was this: calling “becomeFirstResponder” in the viewDidApper cause a lag in the keyboard to show on the screen. To avoid this, I called becomeFirstResponder in viewDidLoad, then in viewDidAppear I resigned and called again becomeFirstResponder.

    Hope this helps

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

Sidebar

Related Questions

Is there any method to rename a div element. I have a div with
Is there any method like the array_unique for objects? I have a bunch of
Is there any method to do this: SELECT * FROM `cores` WHERE superkinds IN
Is there any way to tell during the execution of the valueChanged method of
Is there any way to implement isset() in a setter method? That is, have
Is there any method to tell the user that his score submitted successfully or
Is there any way for the touchesEnded method to tell me the position of
Is there a way to have Xcode tell me when I'm calling a method
Is there any method / API defined to collect system info in osx. I
Is there any method available to add IDs like there is for adding a

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.