cutting-room-floor / mapbox-gl-cocoa

OBSOLETE
74 stars 12 forks source link

look into deleteDrawable #15

Closed incanus closed 10 years ago

incanus commented 10 years ago

The drawable object consumes a significant amount of memory, so whenever the view is not going to be used to display content for a significant period of time, your application should call this method to dispose of the underlying memory. For example, your application might call this method after hiding a view or before transitioning to another screen of content.

If you use a GLKViewController object to manage the view, the view controller automatically calls this method whenever your application moves into the background.

We don't use GLKViewController, so we should do this automatically in the view.