开发者

Objective C: combine two elements of a vector

开发者 https://www.devze.com 2023-02-22 18:32 出处:网络
I have th开发者_如何转开发is code: cell.textLabel.text = [[appDelegate.client objectAtIndex:indexPath.row] objectAtIndex:0];

I have th开发者_如何转开发is code:

cell.textLabel.text = [[appDelegate.client objectAtIndex:indexPath.row] objectAtIndex:0];

but I want write in the cell table view also the "objectAtIndex:1" then after

...objectAtIndex:0...????

what can I write?


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];

See NSString Class Reference and Formatting String Objects.

0

精彩评论

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