layer.masksToBounds = true; layer.cornerRadius = 8;