Commit 9fdd262d4f8bf6d1e733308d86973b4242bb199b
1 parent
e977cdf1
Exists in
newLive
no message
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
YouerLiveVideo/YouerLiveVideo/controllers/User/UserViewController.swift
... | ... | @@ -92,7 +92,11 @@ extension UserViewController:UITableViewDelegate,UITableViewDataSource{ |
92 | 92 | |
93 | 93 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { |
94 | 94 | let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! UserCenterHistoryCell |
95 | - cell.titleName.text = historyType[indexPath.row] | |
95 | + if indexPath.section == 0{ | |
96 | + cell.titleName.text = historyType[indexPath.row] | |
97 | + }else if indexPath.section == 1{ | |
98 | + cell.titleName.text = myResourceType[indexPath.row] | |
99 | + } | |
96 | 100 | return cell |
97 | 101 | } |
98 | 102 | ... | ... |