开发者

how to put different cell values if I have more than one sections?

开发者 https://www.devze.com 2023-03-08 08:56 出处:网络
I have two sections in my UITableView, in one view I want to show data from one NSMu开发者_如何学编程tableArray say AArray and in other sections I want to show the data from other NSMutableArray say B

I have two sections in my UITableView, in one view I want to show data from one NSMu开发者_如何学编程tableArray say AArray and in other sections I want to show the data from other NSMutableArray say BArray

how can i achieve such concept?


You look at the index path.

if (indexPath.section == 0)
    // Use array A
else
    // Use array B
0

精彩评论

暂无评论...
验证码 换一张
取 消