Reference implementation of reuse of UITableViewCell
objects containing Mapbox GL-based Mapbox iOS SDK maps.
- Get CocoaPods
pod install
open MapboxTableViewDemo.xcworkspace
- Build & Run
- Creates a
UITableView
with 100 rows. - Only creates 4-6
MGLMapView
Open GL-backed map views (depending on device size). - Loads a different center coordinate for each of the 100 rows.
- Performant on device (tested with an iPhone 5s running iOS 8.4.1).
- Data courtesy
geoiq/gc_data
.