perkinss / Beachcomber

The ONC beachcomber app
1 stars 1 forks source link

View controllers should be retained #19

Closed jrproctor closed 12 years ago

jrproctor commented 12 years ago

Currently whenever a view controller is presented (i.e. by clicking any button that shows a new view), a new view controller object is allocated and initialized. This should be stored, and created lazily for efficiency.

jrproctor commented 12 years ago

Fixed! All view controllers are only created once, and reused for future uses of that view. Also, they are loaded lazily so that it is not loaded if the user never visits it.