iOS MKMapShapshotter completion block is not always being called

前端 未结 4 1129
有刺的猬
有刺的猬 2020-12-20 13:53

I am trying to use the new iOS7 MKMapSnapshotter to generate a static map image. Whenever my app needs a map, I call the following:

MKMapSnapshotter *snapsho         


        
4条回答
  •  醉话见心
    2020-12-20 14:57

    This issue is probably arising since snapshotter is not a property, therefore it is getting autoreleased soon after leaving this scope. Retaining snapshotter as a property should fix it.

提交回复
热议问题