Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value #871

Open
majdalrifai opened this issue Oct 12, 2018 · 1 comment

Comments

@majdalrifai
Copy link

Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value after the code iCarouselView.type = .cylinder

This code is under override func viewDidLoad() {

@nicklockwood
Copy link
Owner

@majdalrifai iCarousel is written in Objective-C, and that error can only be generated by Swift code.

My guess is that you have created an implicitly unwrapped @IBOutlet for your iCarouseView, and that this hasn’t been correctly hooked up in your Storyboard so that it’s nil at the point when you try to set the type property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants