Generics are a popular and useful feature of many programming languages, but at this stage do not yet exist within Objective-C.
Some time ago I mentioned a library called NanoProfiler that makes it easy to profile the speed of a specific method.
Here’s another interesting library from the same developer, Tomer Shiri, called Objective-C Generics that provides a macro based implementation of basic generics using Objective-C.
Here’s an image showing how you can use generics with arrays just like in Java or C# with Objective-C Generics:
You can find Objective-C Generics on Github here.
A nice addition to Objective-C.
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.