I have a class:
class ListOfEventsController: UIViewController, UITableViewDataSource, UITableViewDelegate {
and it contains a function:
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("CELL") as! SingleEventCell
and when I run it - it causes an error that says
fatal error: unexpectedly found nil while unwrapping an Optional value
but when I go to my story board I see:
and when I click CELL
I see in its properties:
and also:
so the identifiers for CELL
are set up, but I'm still getting this error.
What else can I do?
CELL
into the Identifier
field.Then try again ;)