开发者

Make a MKAnnotation placemark always visible

开发者 https://www.devze.com 2023-02-22 02:30 出处:网络
I want the placemark (title and subtitle) of a MKAnnotation object to be visible on the mapview at anytime without开发者_StackOverflow clicking on it.You can use this in you map ViewController

I want the placemark (title and subtitle) of a MKAnnotation object to be visible on the mapview at anytime without开发者_StackOverflow clicking on it.


You can use this in you map ViewController

(void)viewWillAppear:(BOOL)animated
{
  [super viewWillAppear:animated];
  [myMapView selectAnnotation:myAnnotation animated:YES];
}
0

精彩评论

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