2.3 Chart Snapshot


Will the code for snapshotting a chart be updated to work with 2.3?  Right now I am getting errors at the linking stage for referencing _colorRenderBuffer and a few other iVars.



Hi jmonroe,

Changes to the chart engine in the latest version of ShinobiCharts mean the snapshot code no longer can access the GL.

We’ll be looking into alternatives.

Apologies for any inconvenience.

Kind Regards,
Andrew Polkinghorn


Hi Andrew,

I’d like to voice my vote for screenshot support as well. One of my apps that uses the Shinobi Charts, the screenshot feature is a major feature/selling point. Hopefully you’ll be able to find a way to add this back in.

Keep up the great work!



Hi Guys,

Good News!

There is a fix for this issue.

Replace the following variables in the SChartGLView+Screenshot.h:

  1. Swap

[self getContext]; 

  1. Swap

[self getColorRenderBuffer]; 

  1. Swap

[self getFrameBuffer]; 

The Snapshot code is going to be updated soon and will include this fix along with other added features.

Let me know if you have any issues.

Kind Regards,
Andrew Polkinghorn


Thanks Andrew! Worked perfectly for me.



Hm, unfortunately, the 3rd point gives me this build error: 

SChartGLView+Screenshot.h:31:40: No visible @interface for ‘SChartGLView’ declares the selector ‘getFrameBuffer’

What I am doing wrong?

Edit: Forgot it, only the method name from 3rd point is wrong… getFramebuffer instead of getFrameBuffer