问题
Some times app crashes saying object has been deleted.
Please let me know how can I delete with catch exception.
回答1:
you have to check for the object if it is invalidated or not
if !myObject.isInvalidated {
//the object exists and it is safe to handle it
}
来源:https://stackoverflow.com/questions/46291463/how-can-i-do-safe-delete-using-realm