CGFloat width = ("底部视图的宽度" - 5.0f) / 5.0f;
CGFloat height = 90.0f;
CGFloat marginTop = 10.0f;
int row = 0;
int list = 0;
for (int i = 0; i < 10; i++) {
row = i / 5;
list = i % 5;
XMImgLView *imgLV = [[XMImgLView alloc] initWithFrame:CGRectMake(width * list, marginTop + height * row, width, height) type:ImgTopAndLabelBottom];
imgLV.label.text = @"科研服务";
imgLV.label.font = [UIFont systemFontOfSize:15.0f];
[self addSubview:imgLV];
}