- (void)createBotList{
CGFloat width = self.frame.size.height * 0.095;
CGFloat place = (self.frame.size.width - self.frame.size.height * 0.1 * 3) / 4;
_botView = [[UIView alloc]initWithFrame:CGRectMake(0,self.frame.size.height - self.frame.size.height * 0.25, self.frame.size.width, self.frame.size.height * 0.3)];
_botView.backgroundColor = [UIColor whiteColor];
NSArray * nameLabArr = @[@"我要充值",@"我要提现",@"我的推广",@"资金明细",@"我的投资",@"我的借款"];
NSArray * nameImgArr = @[@"wycz",@"wytx",@"wdtg",@"zjmx",@"wdtz",@"wdjd"];
for (NSUInteger i = 0; i < 6; i++) {
UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(place * (i % 3 + 1) + width * (i % 3), 5 + place * ( i / 3) + (width - 10) * (i / 3), width, width)];
imageView.image = [UIImage imageNamed:nameImgArr[i]];
[_botView addSubview:imageView];
}
for (NSUInteger i = 0; i < 6; i++) {
UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(place * (i % 3 + 1) + width * (i % 3), 5 + place * ( i / 3) + (width - 10) * (i / 3) + width, width, 13)];
label.text = nameLabArr[i];
label.textColor = [UIColor grayColor];
label.textAlignment = NSTextAlignmentCenter;
label.font = [UIFont systemFontOfSize:11];
[_botView addSubview:label];
}
[self addSubview:_botView];
}