You should NEVER add layers in the drawRect method. Use layoutSubview instead. You can draw a circle with this (Swift 3.0+): let circlePath = UIBezierPath( ...
確定! 回上一頁