mapbox/mapbox-ios-sdk — pull request #108 by andreacremaschi (2012-08-31 08:40:25+00:00)
Title: RMMBTilesSource bug fix: added memory tile cache related code

Hi,
as it seems (I hope not to have misunderstood your caching flow) RMMBTilesSource class missed the caching-related code, never adding the new fetched tiles in the cache. As a consequence, the renderer was falling in an infinite loop, the device was overheating etc.
This was related with issue #104 too: since the renderer did never find the tile at the requested zoom level in the cache, it was always fetching the tile at the previous zoom level, resulting in low quality rendering and missing the maximum zoom level present in file.