Alan881 / AACarousel

Easy to create image slider in Swift
MIT License
57 stars 20 forks source link

handleFirstImageView(currentImageView, imageUrl, curIndex) #7

Open ahmtkocamn opened 7 years ago

ahmtkocamn commented 7 years ago

I get angry here, I get an error like this. fatal error: unexpectedly found nil while unwrapping an Optional value

thilakks commented 6 years ago

me to same error

kupelimurat commented 6 years ago

same

captainkev20 commented 6 years ago

In case anyone is curious - I was encountering a nil when unwrapping the image from the Completion Handler. However for me, it was in the downloadImages method.

I discovered NSURL Error 1022 in my log and it was due to my App Transport Security settings in info.plist. For me, I was able to fix it by modifying my plist and allowing arbitrary loads and setting it to YES.

screen shot 2018-11-11 at 2 36 14 am

Below explains how to modify: https://stackoverflow.com/questions/32532020/nsurl-error-code-1022