Not drawing outside bounds when clipToBounds=NO

牧云@^-^@ 提交于 2019-12-23 18:37:23

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!