ShinobiChart initWithFrame initializer returns nil


#1

Hi there,

I’m evaluating the latest ShinobiCharts on iOS with Swift and am facing a weird problem.

When I instantiate a ShinobiChart using the initWithFrame initializer, it returns nil, and nothing is printed on the console. The ViewController managing the ShinobiChart is a child view controller of a custom container view controller. If I instantiate the chart in a non-child view controller, it works fine, so it’s not an issue with the project setup or trial license.

Under what circumstances can initializing the ShinobiChart fail?

Any help is much appreciated.

Kind Regards
Alex


#2

Never mind, this was not a Shinobi issue.

The ShinobiChart instance was accidentally stored in a weak variable.


#3

Hi sensilex,

Glad you found the issue! Thanks for updating the thread.

Kind regards,

Alison