SDAutolayout图片大小根据数量变化

只需要在自定义的PhotoContainerView中做一下判断就可以了

if (self.photoNamesArray.count == ) {
[self setupAutoWidthFlowItems:[temp copy] withPerRowItemsCount: verticalMargin: horizontalMargin: verticalEdgeInset: horizontalEdgeInset:];
} else if (self.photoNamesArray.count == ) {
[self setupAutoWidthFlowItems:[temp copy] withPerRowItemsCount: verticalMargin: horizontalMargin: verticalEdgeInset: horizontalEdgeInset:];
} else {
[self setupAutoWidthFlowItems:[temp copy] withPerRowItemsCount: verticalMargin: horizontalMargin: verticalEdgeInset: horizontalEdgeInset:];
}
上一篇:--查询nvarchar(max)的表和字段


下一篇:zabbix系列之六——安装后配置二Items