CAShapeLayer * borderLayer = [CAShapeLayer layer];
borderLayer.bounds = sender.bounds;
borderLayer.position = CGPointMake(CGRectGetMidX(sender.bounds), CGRectGetMidY(sender.bounds));
borderLayer.path = [UIBezierPath bezierPathWithRoundedRect:borderLayer.bounds cornerRadius:4.f].CGPath;
borderLayer.lineWidth = 1/[[UIScreen mainScreen]scale];
borderLayer.lineDashPattern = @[@2,@2];
borderLayer.fillColor = [UIColor clearColor].CGColor;
borderLayer.strokeColor = [UIColor whiteColor].CGColor;
[sender.layer addSublayer:borderLayer];