0

In Swift 3,i have added UIView to my ViewController and I want to add UIPickerView on the UIView.

When I do:

self.picker.delegate = self
self.picker.dataSource = self

the app crashes with the following error:

fatal error: unexpectedly found nil while unwrapping an Optional value

please help. thanks..!

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Hen Shabat
  • 519
  • 1
  • 6
  • 19

0 Answers0