[英]UITableView - get list of UITableViewCells in an indexPath.section
[英]indexpath.section .. how in tableview into sections?
我有一個帶有節的表視圖,每個節都有自己的數組...我有13個節,每個節都有不同的主題。 我該怎么辦?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
如何進行切換?
Switch(indexpath.section)
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
switch (indexPath.section)
{
case 0: cell.textLabel.text=@""; break;
。 。 。 case n:
//display whatever want break;
default: break;
} }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.