0
要创建一个表作为在IOS Xcode中所示的图像中
无法细胞使用Collection视图之间除去空间如下图中:
要创建一个表作为在IOS Xcode中所示的图像中
无法细胞使用Collection视图之间除去空间如下图中:
如果你需要做到这一点使用UITableView
,你可以选择自定义UITableViewCell
。
否则它能够更好地做UICollectionView
使用泰伯维:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
UILabel *labelData1 = ...;
labelData1.text = @"333";
UILabel *labelData2 = ...;
labelData2.text = @"56";
UILabel *labelData3 = ...;
labelData3.text = @"12";
UILabel *label1 = ...;
label1.text = @"Questions";
UILabel *label2 = ...;
label2.text = @"Sections";
UILabel *label3 = ...;
label3.text = @"Exams";
return cell;
}
定制的tableview细胞或使用的CollectionView – Ragul
使用集合视图 –
的CollectionView是fullfill您的需求的好方法。 –