I try to set image via SDWebImage. But SDWebImage cancel operation. I've tried to get this image in Safari with url and Safari asked me about certificate. When I cancel dialog window I get this image.
Question is: Can I disable SDWebImage certificate validation without modifying this library?
Use
UIImageView_name.sd_setImage(with: URL(string: logo), placeholderImage: nil, options: .allowInvalidSSLCertificates)
Instead of
UIImageView_name.sd_setImage(with: URL(string: logo))
UIImageView_name
For UIButton use
UIButton_name.sd_setImage(with: URL(string: customer.getProfilePic()), for: .normal, placeholderImage: nil, options: .allowInvalidSSLCertificates, completed: nil)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With