Skip to main content

Minimal requirements for ARC using



In apple documentation I saw that minimal requirements for ARC is iOS 4.3, but on WWDC 2011 video they talk that minimal requirements in iOS 4.0.








On what minimal iOS version ARC will work?


Will ARC work on iOS 4.0?



Comments

  1. ARC is function of the compiler rather than the device, so technically it has nothing to do with the OS it is being used on. The difference between the two is the actual zeroing of weak references. Read this for even more info about it.

    Running an application that was compiled with ARC on a device with an OS prior to 5.0 will essentially manually zero out references rather than actually zero them out. The automatic zeroing is a core feature of ARC and is why you no longer need to call dealloc or release objects.

    ReplyDelete
  2. Don't know where you saw the bit about 4.3 (do you have a link?) - but in the "Transitioning to ARC Release Notes" Apple says iOS 4.

    ReplyDelete
  3. ARC is a compiler level feature. So it should work if you are able to compile your code with the latest LLVM 3 compiler. Some very old code bases (mostly old C language third party libraries) that require GCC compiler will not work (such code bases are very very rare)

    Zero-ing weak references, a run time feature that ARC takes advantage of, is not available on OSes before iOS 5/Lion. But ARC without weak references will still work.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.