Adding chart to tableviewcell


#1

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

[cell.contentViewaddSubview:theGraphViewController.view];

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

Please advise, thanks


#2

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

cell.graphViewController = theGraphViewController;