Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There could be many reasons for your failure to display the records: </p> <ul> <li>data was not saved</li> <li>data was not retrieved correctly</li> <li>data was not displayed correctly</li> </ul> <p>All of these could be potentially complicated scenarios, but you should check them in this order. </p> <p>A much better approach: use <code>NSFetchedResultsController</code> for your main view controller and have the delegate methods take care of updating your table view. No need to fetch, no work to be done in any completion methods - just save the data and the FRC will update your table.</p> <p><strong>Edit: how to check the physical database</strong><br> It is possible that your data only exists in memory but is not actually saved to the database. Find the actual database file (in the documents folder of the app from the Simulator) and check it with the <code>sqlite3</code> command line utility, or with the Firefox plugin "SQLite Manager".</p> <p><strong>Edit2: more concrete recommendations</strong><br> You should make sure that you call:</p> <pre><code>[managedObjectContext save:&amp;error]; </code></pre> <p>Also double-check what your <code>ENTITY</code> macro stands for (not a very smart name).</p> <p>It seems to me that you are overusing the block methods to no apparent purpose. First try to make everything work on the main thread (one context!). Only if you get performance problems consider background threads and context and calls to <code>performBlock</code> etc.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload