P.230 DetailViewController *detailViewController


#1

p.230

It’s confusing to newbies (and bad practice in general) to give an object instance the same name as the class. Suggest replacing with:

And subsequently using “dvc” instead of “detailViewController”.


#2

A general question in this context: Is it practicable to alloc a new DetailViewController every time you select a row?


#3

If creating a brand new one means writing less code, I would do that; otherwise I would reuse the existing one.


#4

Yes, it is totally okay to create a view controller and destroy it as needed.