自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

iOS源碼下載:按組堆疊的單元格

移動(dòng)開發(fā)
第三方庫(kù)TFStackingSectionsTableView可以把單元格按組堆疊。組頭顯示在表格上,點(diǎn)擊組頭可以展開對(duì)應(yīng)的單元格。

支持平臺(tái):iOS

運(yùn)行環(huán)境:iOS

開發(fā)語(yǔ)言:Object-c

開發(fā)工具:Xcode

源碼大?。?0.27KB

源碼下載地址:http://down.51cto.com/data/1975620

源碼簡(jiǎn)介

第三方庫(kù)TFStackingSectionsTableView可以把單元格按組堆疊。組頭顯示在表格上,點(diǎn)擊組頭可以展開對(duì)應(yīng)的單元格。

源碼運(yùn)行截圖

效果圖

源碼片段

  1. - (void)viewDidLoad 
  2.     [super viewDidLoad]; 
  3.       
  4.     self.groups = @[@"Group A", @"Group B", @"Group C", @"Group D", @"Group E", @"Group F", @"Group G", @"Group H"]; 
  5.     self.members = @[ 
  6.         @[@"Brazil", @"Mexico", @"Croatia", @"Cameroon"], 
  7.         @[@"Netherlands", @"Chile", @"Spain", @"Australia"], 
  8.         @[@"Columbia", @"Greece", @"Côte D'Ivoire", @"Japan"], 
  9.         @[@"Costa Rica", @"Uraguay", @"Italy", @"England"], 
  10.         @[@"France", @"Switzerland", @"Ecuador", @"Honduras"], 
  11.         @[@"Argentina", @"Nigeria", @"Bosnia and Herzegovina", @"Iran"], 
  12.         @[@"Germany", @"USA", @"Portugal", @"Ghana"], 
  13.         @[@"Belgium", @"Algeria", @"Russia", @"Korea Republic"
  14.     ]; 
  15. - (UIView *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { 
  16.     return self.groups[section]; 
  17.   
  18. - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 
  19.     return nil; 
  20.     UILabel *label = [UILabel new]; 
  21.     label.text = [@"  " stringByAppendingString:self.groups[section]]; 
  22.     label.backgroundColor = [UIColor colorWithWhite:0.97f alpha:1.0]; 
  23.     label.textColor = [UIColor colorWithWhite:0.13f alpha:1.0]; 
  24.     label.font = [UIFont boldSystemFontOfSize:14.0f]; 
  25.     return label; 

源碼下載地址:http://down.51cto.com/data/1975620

責(zé)任編輯:閆佳明 來(lái)源: 網(wǎng)絡(luò)整理
相關(guān)推薦

2013-06-20 11:10:24

iOS開發(fā)UItableView單元格背景漸變

2009-08-07 17:54:41

C#單元格數(shù)據(jù)

2021-08-13 11:10:32

OpenPyXLExcelPython

2009-07-28 03:44:00

GridViewRow

2010-04-27 11:11:06

Oracle修改JTa

2010-08-11 16:41:30

Flex DataGr

2009-07-27 16:46:07

DetailsView

2021-09-09 08:58:32

Excel數(shù)據(jù)處理函數(shù)

2015-01-20 17:15:55

iOS源碼滾動(dòng)視圖

2015-01-19 12:19:04

iOS源碼ActionSheet仿QQ音樂(lè)

2020-11-20 10:52:54

Antd表格日程

2010-08-26 10:42:18

CSStr td

2020-02-19 14:55:20

開發(fā)技能代碼

2011-06-15 10:49:26

Qt QTableItem

2015-01-15 16:45:05

iOS源碼自定義畫圖

2022-08-01 08:02:25

單元格可視化語(yǔ)法

2011-06-15 12:58:05

Qt QTableWidg

2012-05-21 09:41:54

XcodeiOS單元測(cè)試

2010-01-28 15:54:19

Android單元測(cè)試

2024-05-28 07:53:23

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)