介紹:
自定義地圖上的MKUserLocationView(用于標(biāo)注用戶當(dāng)前位置的Annotation)。蘋果默認(rèn)的MKUserLocationView 是藍色的,demo中的user location annotation是紅色的。這份代碼用Core Graphics繪制小圓點以及小圓點周圍的光圈,從而達到自定義的annotation的目的。 地圖(Map) Pulsing Annotation View
測試環(huán)境:
測試環(huán)境:Xcode 4.5, iOS 6.0 以上。
效果圖:
使用方法:
自定義地圖上的MKUserLocationView(用于標(biāo)注用戶當(dāng)前位置的Annotation)。蘋果默認(rèn)的MKUserLocationView 是藍色的,demo中的user location annotation是紅色的。這份代碼用Core Graphics繪制小圓點以及小圓點周圍的光圈,從而達到自定義的annotation的目的。