TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by .
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
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!
Julio Andrés Carretttoni, @dev_jac
FaceAwareFill is available under the MIT license. See the LICENSE file for more info.