0

我想将此标签数组添加到 collectionview 单元格

labelArray =[[NSArray alloc] initWithObjects:@"Theme 001-002", @"Theme 002-006", @"Theme 006-009", @"Theme 009-012", nil];


NSString *filePath = [labelArray indexPath.row];

这是将标签数组添加到collectionview单元格的正确方法吗?

cell.label.text = @"Theme 001-002";

谢谢

4

1 回答 1

0

解决了

labelArray =[[NSArray alloc] initWithObjects:@"Theme 001-002", @"Theme 002-006", @"Theme 006-009", @"Theme 009-012", nil];


cell.label.text = [labelArray objectAtIndex:indexPath.row];
于 2013-06-14T17:24:06.260 回答