0
我有這樣的代碼:目標C:結合了向量的兩個元素
cell.textLabel.text = [[appDelegate.client objectAtIndex:indexPath.row] objectAtIndex:0];
,但我想在細胞表視圖也是「objectAtIndex:1」寫再經過
...objectAtIndex:0...????
什麼我可以寫嗎?
我有這樣的代碼:目標C:結合了向量的兩個元素
cell.textLabel.text = [[appDelegate.client objectAtIndex:indexPath.row] objectAtIndex:0];
,但我想在細胞表視圖也是「objectAtIndex:1」寫再經過
...objectAtIndex:0...????
什麼我可以寫嗎?
NSString *a = [[appDelegate.client objectAtIndex:indexPath.row] objectAtIndex:0];
NSString *b = [[appDelegate.client objectAtIndex:indexPath.row] objectAtIndex:1];
cell.textLabel.text = [NSString stringWithFormat:@"%@%@", a, b];