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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:53:55+00:00 2026-05-22T02:53:55+00:00

I have a table view which has custom cells. My table view cell get

  • 0

I have a table view which has custom cells. My table view cell get populated through the values inserted in an SQLite database.

The database values are shown in my table view cells, but the problem is, when I navigate from my table view to the previous view, and back to the tableview through the navigation bar, the table view becomes empty. What might be the problem?

  • 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-22T02:53:56+00:00Added an answer on May 22, 2026 at 2:53 am

    Edited to suggest a more likely solution based on comments to this answer

    Assuming you’re adding the login view as a modal viewController, you need to refresh the table after each additional login. In your viewWillAppear method reload your tableView:

    [tableView reloadData];
    

    Or, if your table takes a while to reload, you can send a notification to the viewController to reload the tableView from the login view before you dismiss it.


    Currently-not-visible views can be unloaded at-will by the OS if memory gets tight. A common iOS development mistake is to assume that the code in a viewController’s viewDidLoad and viewDidUnload methods will only be called when the view is first loaded and later unloaded. Check to make sure that your viewDidLoad method isn’t making any assumptions about the availability of data and that your viewDidUnload method isn’t accidentally deleting data that the newly re-called viewDidLoad will need.

    Similarly, ensure that your viewWillAppear method isn’t being thwarted by something in your viewDidUnload method.

    Lastly, and in the same vein, understand that if your view gets dumped by the OS for memory reasons, it will sometimes call your viewDidUnload method as it clears it out, but sometimes seems to not call it, perhaps because the memory used by the view was so great that a failure to clear things out in its didReceiveMemoryWarning method made it decide to just dump the view immediately and completely, without really allowing it to clean itself up.

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

Sidebar

Related Questions

I have a table view of custom cells representing individual uploads and each cell
I have a tableview which contains custom cells where each cell has some PDF
I have a navigation controller which also has a table view. I want to
I have a table view controller with custom cells. In those cells i added
I have a custom subclass of a UITableViewController which has a editable cells in
I have several parts in my app where I use custom table view cells.
i am having a tableview in which custom cells are loaded.Custom cell has a
I have a tableView which has cells with phone numbers. The app is not
I have a simple table view which is editable. All I need the user
I have a table view controller which doesn't let me manually scroll to 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.