Gradient Polyline with MapKit ios

前端 未结 3 1040
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 02:23

I\'m trying to trace a route on a MKMapView using overlays (MKOverlay). However, depending on the current speed, I want to do something like the Nike app with a gradient whi

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 03:15

    sounds to me that your drawRect in the line drawing view is missing the setting of the gradient. drawing might occur on a different thread for the overlays. please post the code.

提交回复
热议问题