Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source: Compiler Stubs Enabling Weak References With ARC On Pre-iOS 5 Devices

  •  
  •  
  •  
  •  
  •  

With the addition of automatic reference counting you probably have – or at least have considered dropping support for older iOS versions.

That’s where a project I came across earlier comes in – providing compiler stubs so you can use weak references with ARC on iOS 4.   The real runtime functions are used if present so this code only takes effect on pre-iOS 5 versions.

The project will also automatically make use of MAZeroingWeakRef if it is being used.

The project is known as PLWeakCompatibility from Plausible Labs and can be found on the Github page where you’ll also find full installation instructions.

A very useful project for those still needing to support older iOS versions.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments