Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Notifications You must be signed in to change notification settings

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

AltStyle によって変換されたページ (->オリジナル) /