0
votes

I'm looking for an ARC compatible charting framework for iOS. I'm aware of the existence of Core Plot, but apparently this framework is MRC and does not work in an ARC environment. Googling didn't turn up anything decent.

Specifically I'm looking to draw a histogram (bar chart) with two axes and and some basic display of the values on an iPhone, so nothing too complicated actually.

Does anyone know of an ARC alternative to Core Plot that can achieve this?

3

3 Answers

2
votes

You can still use Core Plot in your project even though it's manual reference counting.

In your Target -> Buld Phases -> Compile Sources you can add a compiler flag to disable ARC on Core Plot related files.

  1. Navigate to Target -> Build Phases -> Compile Sources
  2. Select your desired files
  3. Add the compiler flag -fno-objc-arc

Core Plot should now work in your ARC enabled project.

2
votes

There is the slightly less sophisticated ECGraph, but I would really suggest you use Core Plot and simply disable ARC for those files, or link the project as a reference. ARC binaries are compatible with non-ARC binaries.

1
votes

You can turn ARC off for CorePlot by setting this -fno-objc-arc flag to it's source files by selecting your project file in XCode, selecting your target, going to 'Build Phases'->'Compile Sources'.