问题
any property can set the pin in google map bigger? from what i know, MKPinAnnotationView class only provided few properties but not any related to set custom pin size.
Pls help if have any idea.
Thanks in advance
回答1:
As MKPinAnnotationView
is a subclass of UIView
I believe you can explicitly set its frame.
As an alternative you can apply CGAffineTransform to your view to scale it appropriately.
pinView.transform = CGAffineTransformMakeScale(2.0, 2.0);
回答2:
Just change the size of the frame in the pinView:
[pinView setFrame:CGRectMake(0, 0, 33, 33)];
来源:https://stackoverflow.com/questions/2442656/how-to-make-the-pin-show-bigger-in-google-map