美文网首页iOS
iOS UIImageView填充模式

iOS UIImageView填充模式

作者: NieFeng1024 | 来源:发表于2016-05-14 01:01 被阅读3071次
图片等比例缩放之后显示问题但是填充模式设置了.gif UIImageView填充样式.gif
UIViewContentModeScaleToFill,
UIViewContentModeScaleAspectFit,
// contents scaled to fit with fixed aspect. remainder is transparent
UIViewContentModeScaleAspectFill,
// contents scaled to fill with fixed aspect. some portion of content may be clipped.
UIViewContentModeRedraw,
// redraw on bounds change (calls -setNeedsDisplay)
UIViewContentModeCenter,
// contents remain same size. positioned adjusted.
UIViewContentModeTop,
UIViewContentModeBottom,
UIViewContentModeLeft,
UIViewContentModeRight,
UIViewContentModeTopLeft,
UIViewContentModeTopRight,
UIViewContentModeBottomLeft,
UIViewContentModeBottomRight,

相关文章

网友评论

本文标题:iOS UIImageView填充模式

本文链接:https://www.haomeiwen.com/subject/ieumrttx.html