1234567891011121314151617181920212223242526272829303132 |
- //
- // GoodsDetailsIntroduceV.m
- // Asteria
- //
- // Created by 王猛 on 2023/12/27.
- //
- #import "GoodsDetailsIntroduceV.h"
- #import "ASHomeTipCollectCell.h"
- @implementation GoodsDetailsIntroduceV
- - (void)tt_setupViews{
- NSArray *titleArr = [NSArray arrayWithObjects:@"USA UK CAN\nFREE SHIPPING",@"INTERNATIONAL\nEXPRESS SHIPPING",@"SECURE PAYMENTS\nCREDIT PAY IN 4",@"30 DAYS FREE\nRETURN/EXCHANGE", nil];
- NSArray *imgArr = @[@"trade_tip",@"air_tip",@"pay_tip",@"box_tip"];
-
- CGFloat margin = 10;
- CGFloat w = (KScreenWidth- 3*margin-1)/2;
- CGFloat h = w/172*55;
-
- for (int i=0; i<titleArr.count; i++) {
- ASHomeTipCollectCell *cellV = [[ASHomeTipCollectCell alloc]init];
- cellV.frame = CGRectFlatMake(i%2*(w+10), i/2*h, w, h);
- NSString *titleStr = titleArr[i];
- NSString *imgName = imgArr[i];
- cellV.imgV.image = [UIImage imageNamed:imgName];
- cellV.titleLb.text = titleStr;
- [self addSubview:cellV];
- }
- }
- @end
|