As per your comments on Ashish's response, it seems like you are not saving the managed object context after inserting the records.
Insertion process:
Then notify the view controller to refresh the weather list using NSNotification on the main thread or some other mechanism as per your suitability.
And then try to fetch weathers from viewContext for UI rendering.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.