General Question about passing data


#1

This may be a silly question being that I am this far in the book but I really need an explination. I fully understand how the didSelectRowAtIndexPath creates an instance of DeailViewController and pushes it out to the ViewController stack. Makes sense.

Then, in detailView.h, we create a property called BNRItem *item. We declare it and synthesize it’s basic methods and then start using it.

I may just not be seeing the forest for the trees, but at what point did *item learn what item it was actually pointing at? In the method viewWillAppear, we don’t assign the to item. How does viewWillAppear know what item it’s been assigned.

Thanks!