You should use UIGraphicsBeginImageContextWithOptions which allows you to set the scale factor. Use a scale factor of 0.0f to use the device’s scale factor.
You should use UIGraphicsBeginImageContextWithOptions which allows you to set the scale factor. Use a scale factor of 0.0f to use the device’s scale factor.