my codes are as below, but i'm getting an error the same as the title for the line commented out. i tried optional binding but still isn't working. i'm already updating the dates array in viewDidLoad so not sure why its found nil, any idea? Thanks!
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = myTableView.dequeueReusableCellWithIdentifier("logCell", forIndexPath: indexPath) as! logViewCell
let dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "dd-MMM-yy"
// cell.date.text = dateFormatter.stringFromDate(dates[indexPath.row])
}
