开发者

Objective C: combine two elements of a vector

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜