When iOS 5 was released Core Image was added with face detection and I posted this tutorial.
Here’s a handy UIImageView category that utilizes Core Image face detection adding a Face Aware view that automatically centers upon faces detected within the image called UIImageView_FaceAwareFill from Julio Andres.
Here’s an image from the readme showing different UIImageView fill modes with the face aware fill added by the category:
You can find UIImageView_FaceAwareFill on Github here.
An example is included, and if you have problems with face detection broken on a 64-bit device you may want to try suggestions on this Stack Overflow post.
A handy category for easy centering on faces within an image.
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.