Adding chart to tableviewcell


I’m having crashes when trying to add chart to tableViewCell. The app crashes at the following line without an error message:


I’m using the same controller without problems when adding to normal views.

Please advise, thanks


I found the problem… I needed to retain the viewController:

cell.graphViewController = theGraphViewController;