Skip to content

LucasssD/LDAlignmentImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDAlignmentImageView

UIImageView subclass with simple methods to align and scale image inside UIImageView.

##Demo:

##Available properties:

-imageVerticalAlignment (Top, Center, Bottom)

-imageHorizontalAlignment (Left, Center, Right)

-imageContentMode (Original size, Scale to Fill, Scale Aspect Fill, Scale Aspect Fit)

##Animatable All changes can be easly animated by putting them in animation block, for example

[UIView animateWithDuration:0.4  animations:^{
    ldImageAlignmentView.imageVerticalAlignment = LDImageVerticalAlignmentCenter;
    ldImageAlignmentView.imageHorizontalAlignment= LDImageHorizontalAlignmentLeft;
    ldImageAlignmentView.imageContentMode = LDImageContentModeScaleToFill;
}];

About

UIImage with simple methods to align and scale image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published