I am at work and don't have the code to hand right now but will post it later, just wanted to see if I could get any answers before I got home.
Basically, I have a tableViewController (view1) with a button on it which pushes to another tableViewController (view2).
the button on view1 checks if the information needed to populate the table on view2 is available. if it is, great, the segue can be performed; if it isn't then the data is stored in the background and then the segue is done.
this does work, but the issue i have is for the 2nd instance, when the data isnt previously saved and the button then saves it, the segue is performed before all of the data is saved in the background, so the table only shows a few records. going back and then pressing the button again solves this as the data has had more time to save and so the table in view2 is up to date.
what i want to do is either stop the segue from happening until all data is saved OR perform the segue and as each record is saved, update the table, so the user can see data is being generated.
i hope that makes some sense!
i can provide code later is needs be.
any suggestions would be great.
thanks