FaceAwareFill 1.0

FaceAwareFill 1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by .




  • By
  • Julio Andres Carrettoni

This category applies Aspect Fill content mode to an image and if faces are detected it centers them instead of centering the image just by its geometrical center.

Based on this awesome post by @maniacdev

Example:

image

Installation

Usage

Import the category to your .m file or to your "prefix" file.

#import "UIImageView+UIImageView_FaceAwareFill.h"

Then AFTER setting the image property of a UIImageView do:

[imageView faceAwareFill];

That's all.

Enjoy!

Author

Julio Andrés Carretttoni, @dev_jac

Notes:

License

FaceAwareFill is available under the MIT license. See the LICENSE file for more info.