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您的需求的好方法。 –