iOS CAShapeLayer & UIBezierPath 畫圖

  CAShapeLayer 繼承與CALayer,主要用於根據路徑繪製圖形,因此CAShapeLayer需結合 UIBezierPath 一起使用。 CAShapeLayer對象屬性列表 屬性名 描述 path CGPathRef 對象,圖形邊線路徑 lineWidth 邊線的寬度 strokeColor 邊線的顏色 lineDashPattern 設置邊線的樣式,默認爲實線,該數組爲一個NSN
相關文章
相關標籤/搜索