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
  • 307,833
  • 40
  • 508
  • 550
Hen Shabat
  • 359
  • 4
  • 16

0 Answers0