Search code examples
iosobjective-cmarkerclusterer

IOS arc disabling for part of code


I'm a newbie to IOS technology. I have been developing an app, in which I have to add around 10,000 mkannotations to my map. So I prefer to use clustering algorithm (probably using k_means). However, I found this beautiful external library at (https://www.cocoacontrols.com/controls/adclustermapview)

When I complied the example framework of this project and ran it on simulator everything works fine, however, when I add the required files to my project as they described, it raises a lots of errors regarding

retain
release etc.

So I understand there is some issue with the arc compatibility in the project

Here are my questions

  1. These retain, release methods being used in some project, does that mean that they are developed with old versions of IOS?
  2. If so, how do I resolve these error, other than manually removing them?
  3. Is there a method in IOS, which allows me to compile a code partially using one compiler and the remaining using other?

Solution

  • enter image description hereSelect desired files at Target/Build Phases/Compile Sources in Xcode

    PRESS ENTER

    Type -fno-objc-arc

    Press Enter or Done