CAShapeLayer beizerpath edges not smooth objective c iOS

 Problem:

ShapeLayer edges are not smooth while drawing in CAShapeLayer.


Solution:

  [shape setLineCap:kCALineCapRound];


Add the above line it will smooth the layer in the edges.

Comments

Popular posts from this blog

How to blink a button iOS swift?

Convert NsNumber, NSDate to String in iOS Swift

Parse the value from string value iOS swift