开发者

How to move currentlocation pin smoother animation when update location called

I am implementing MKMapView based application. In that I showed the current location with a pin. When my current location is changed the pin is blinking to the updated location. But my requirement is to stop blinking and make an animation or move the pin smoother with out blinking.

I tri开发者_运维百科ed in many ways but I didn't find a solution on this. I had the previous and current frames of the location pin. Is it possible to make this requirement with these values?


you can use user current location by default. that will automatically animated. my code as below

  map=[[MKMapView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
  map.delegate=self;
  map.zoomEnabled=YES;
  map.scrollEnabled=YES;
  map.showsUserLocation=YES;
  map.userInteractionEnabled=YES;
  map.mapType=MKMapTypeStandard;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜