解决方案:

    1. layer.borderWidth = (1.0 / [UIScreen mainScreen].scale)