I am trying to draw only corners to ImageView frame. For this I used CAShapeLayer and Bezier path and working fine with dotted lines around the UIImageView frame. But requirement is something more like, have to show only corners. Things which I tried till now is,
@property (strong, nonatomic)CAShapeLayer *border;
_border = [CAShapeLayer layer];
_border.strokeColor = [UIColor colorWithRed:67/255.0f green:37/255.0f blue:83/255.0f alpha:1].CGColor;
_border.fillColor = nil;
_border.lineDashPattern = @[@40, @50];
[pImageView.layer addSublayer:_border];
_border.path = [UIBezierPath bezierPathWithRect:pImageView.bounds].CGPath;
_border.frame = pImageView.bounds;
I used different lineDashPattern but unable to get the result as I didn't found proper documentation for lineDashPattern. How it draws and all. Any type of help will be useful
I want something like this