更新到
iOS 13.0之后,属性发生了变化,大长图,由之前先适配宽度变为了高度先全部显示,宽度不等于屏幕的宽了:
查看源代码:
YBIBImageData.h
点击defaultLayout进入:
YBIBImageLayout.h
查看枚举值:
verticalFillType枚举值
故解决办法:
YBIBImageData *data = [[YBIBImageData alloc] init];
data.imageURL = [NSURL URLWithString:pic_url];
YBIBImageLayout *layout = data.defaultLayout;
layout.verticalFillType = YBIBImageFillTypeFullWidth; // 宽度优先填充
注明:其他使用方法可查看github










网友评论