Skip to content

iunion/DJAlignedImageView

Repository files navigation

DJAlignedImageView

DJAlignedImageView是继承UIView,用户可以设置图片在view中排列方式.

排列方式

水平排列

  • DJImageViewHorizontallyAlignmentLeft Default 中
  • DJImageViewHorizontallyAlignmentCenter
  • DJImageViewHorizontallyAlignmentRight

垂直排列

  • DJImageViewVerticallyAlignmentTop Default 中
  • DJImageViewVerticallyAlignmentCenter
  • DJImageViewVerticallyAlignmentBottom

以上排列方式在contentModeAspectFit, AspectFill or ScaleToFill 时有效

图示

纵向图片

1.全部contentMode

2.ScaleToFill

3.AspectFit

4.AspectFill

横向图片

1.全部contentMode

2.ScaleToFill

3.AspectFit

4.AspectFill

Author

About

A ImageView which allows you to align the image left/right/top/bottom/center, even when contentMode is ScaleAspectFit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published