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

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift