只需要在自定义的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:];
}