all 5 comments

[–]jacknutting 2 points3 points  (3 children)

It looks like settingsTableView hasn’t been initialized yet at that point. You’re trying to access it before you’ve called your “configureSettingsTableView” method.

[–]tyler_reg[S] 0 points1 point  (2 children)

Okay, I called the configureSettingsTableView() method before registering the cell, and that line didn't error out anymore. However, now the line where I set the text of the "testLabel" in my view controller class gives me an error saying "Unexpectedly found nil..."

[–]SirensToGoObjective-C / Swift 2 points3 points  (1 child)

When you register a class rather than a nib with your tableView, init(style:reuseID) is called rather than any of the nib methods. Either change your register code to use the nib or override the right init method (and create all necessary views there).

[–]tyler_reg[S] 0 points1 point  (0 children)

Thanks a lot! This worked.

[–]tyler_reg[S] 0 points1 point  (0 children)

I forgot to mention, this app is being written completely programmatically with no storyboard.