[UIImage] If UIImage Can't Read Use Web API Swift 4.2


I found a problem in debug Area like this =  "2018-09-14 16:19:37.735627+0700 test[3161:5945997] finish with error - code: - 1022"

1. First setting in file project -> info.plist



or use Source Code

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

2. Use CocoaPod KingFisher to download Image

No comments: