Passing Realm objects between ViewControllers
问题 How would you go about passing Realm objects between controllers? Would you pass just the ID and then fetch the object in the new controller or just pass the whole Realm object? 回答1: The current best practice is to just fetch again. If you are working off of a background thread, you can pass primary keys to the main thread and fetch with those. It's not that big of a performance issue in the thousand of objects due to how realm handles the loading of objects 回答2: As far as I can see, the best