我写了这个方法来UIImage
从MKMapSnapshotter
:
- (void)createSnapshot:(void (^)(UIImage *))image withOptions:(MKMapSnapshotOptions *)options
{
MKMapSnapshotter *snapshotter = [[MKMapSnapshotter alloc]initWithOptions:options];
[snapshotter startWithCompletionHandler:^(MKMapSnapshot *snapshot, NSError *error){
image(snapshot.image);
}];
}
虽然一切都适用于 iPhone OS9,但处理程序永远不会在我的 iPad OS 8.4.1 上被调用
地图在 iPad 上也无法正常工作。如果有人放大,则地图不会进一步加载。是不是mapkit有问题???