我想知道如何在 iOS 上的 UITableView 中为音乐文件创建通用音乐图像,例如图像文件的通用图片图像。这是我正在尝试做的图片http://smartlifeblog.com/wp-content/uploads/2012/02/dropbox-ios.jpg
到目前为止,我有代码来显示我的文档目录中的文件
static NSString *CellIdentifier = @"FileCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
if (cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
cell.textLabel.text = [files objectAtIndex:indexPath.row];
return cell;
我可以在表格中添加图像,但我不确定如何为适当的文件类型加载适当的图像。