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

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex