开发者

How to move currentlocation pin smoother animation when update location called

开发者 https://www.devze.com 2023-01-19 06:33 出处:网络
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

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

精彩评论

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