问题
I am drawing lines on a map, and I notice that my annotation view isn't covering the entire area of the lines (which is fine, as long as I can draw outside the bounds of the view).
Here is a picture of what I'm experiencing. The clipToBounds property is set to NO for the annotation view, and I've added a semi-transparent color to the background so you can see the position of the view. blue line not drawn outside bounds http://img.skitch.com/20100512-qdm18j7x42wptw3cumnr6h271q.jpg
The pins represent the various waypoints on the map.
Do I have to do something special to get the lines to keep drawing outside the bounds of the view?
回答1:
What lines are you referring to?
Anyway, I think the answer should be "no", unless you are doing custom drawing.
In that case, you need to make sure [view setNeedsDisplay]
is being called whenever the lines need to be drawn.
来源:https://stackoverflow.com/questions/2823599/not-drawing-outside-bounds-when-cliptobounds-no