Add inverted circle overlay to map view

前端 未结 4 1473
天命终不由人
天命终不由人 2020-12-14 11:31

(Using iOS 5 and Xcode 4.2.)

I\'ve followed the instructions here: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/LocationA

4条回答
  •  天涯浪人
    2020-12-14 12:01

    The best way to do it, would be to subclass MKMapView and override the drawRect method call super, then paint over the map with the color you want. Then each time the user moves, drawRect should respond by drawing appropriately.

提交回复
热议问题