So this question is doubled.
I am creating a banknote reminder application and want to use CoreData to store all the data (for which I am new). I have set up all my entities and relationships (BillAccount one-to-many relationships with bills). Thus, an account can have many accounts.
Question 1: Thus, someone enters the account information and sets how many times the bill and short-term storage will be repeated. How do I create a BillAccount object, then loop through and add all the accounts that BillAccount just added? I can easily add one account and an account, but I'm not sure how to add multiple accounts to one BillAccount.
Question 2: How to add an additional Bill to an existing BillAccount after I have already created BillAccount ... so that account editing will not be added for the first time? You must first set up a BillAccount object and get its unique identifier. I am a little confused by this.
Some basic code examples would be great. Thank you for your help.
source share