ios - Masking CALayer with Lines -


i'm trying find efficient way perform following clipping operation on cashapelayer have.

what i'm trying do

i have cashapelayer circular path consists of uibezierpath has been constructed using method [uibezierpath bezierpathwitharccenter:] (this full circle 0 2pi radians), , inside of circle, want cut out multiple lines drawn @ different angles, making area below cut out lines transparent on circle. want these lines begin , end @ points on outside of circle aka edges of cashapelayer's path.

i'm wondering whether there way use mask property on cashapelayer accomplish this, or whether should abandon idea of cutting out full circle , draw each arced triangle separately different cashapelayers.

thank help!

i ended solving forgetting using masks. instead, constructed uibezierpath using movetopoint: , addlinetopoint: methods in order draw desired portions of circle.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -