2
This commit is contained in:
@@ -61,9 +61,9 @@ static NSString * const kMySkinCellId = @"kMySkinCellId";
|
||||
// 空态视图(LYEmptyView)统一样式 + 重试按钮
|
||||
KBWeakSelf
|
||||
[self.collectionView kb_makeDefaultEmptyViewWithImage:nil
|
||||
title:@"暂无皮肤"
|
||||
detail:@"下拉刷新试试"
|
||||
buttonTitle:@"重试"
|
||||
title:KBLocalized(@"No skins yet")
|
||||
detail:KBLocalized(@"Pull down to refresh")
|
||||
buttonTitle:KBLocalized(@"Retry")
|
||||
tapHandler:nil
|
||||
buttonHandler:^{ [weakSelf.collectionView.mj_header beginRefreshing]; }];
|
||||
[self.collectionView kb_setLYAutoShowEnabled:NO]; // 采用手动控制显隐
|
||||
@@ -224,7 +224,7 @@ static NSString * const kMySkinCellId = @"kMySkinCellId";
|
||||
CGFloat spacing = 12;
|
||||
CGFloat W = UIScreen.mainScreen.bounds.size.width;
|
||||
CGFloat itemW = floor((W - inset * 2 - spacing) / 2.0);
|
||||
CGFloat itemH = itemW * 0.82f; // 接近截图比例
|
||||
CGFloat itemH = KBFit(168); // 接近截图比例
|
||||
layout.itemSize = CGSizeMake(itemW, itemH);
|
||||
layout.minimumInteritemSpacing = spacing;
|
||||
layout.minimumLineSpacing = spacing;
|
||||
|
||||
Reference in New Issue
Block a user