filmov
tv
06 CloudKit - Delegation for Adding New Expense to Expenses - Expenses App - Private iCloud Database
Показать описание
This is the sixth video in a series about using CloudKit and iCloud to persist data for an Expenses app using a single entity type of Expense in a private iCloud database. In this video, delegation is used to update the list of Expenses with a new Expense after it is created. There is an issue with CloudKit that there is a lag between a new entity being saved and it being available in query. To keep the list of Expenses up-to-date for the user to see, a new Expense is added to the array of Expenses after it is created rather than relying on being able to query the Expenses to get them all after a new Expense has been saved.