我试图在越狱的iPhone上的iTunes目录中获取自定义铃声的名称。我可以成功列出自定义铃声,但他们重新显示为HWYH1.m4r
,这是iTunes重命名文件的内容,但我知道这是解密歌曲实际名称的一种方法。来自plist词典的UITableView KEYS,iOS
NSMutableDictionary *custDict = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/iPhoneOS/private/var/mobile/Media/iTunes_Control/iTunes/Ringtones.plist"];
NSMutableDictionary *dictionary = [custDict objectForKey:@"Ringtones"];
NSMutableArray *customRingtone = [[dictionary objectForKey:@"Name"] objectAtIndex:indexPath.row];
NSLog(@"name: %@",[customRingtone objectAtIndex:indexPath.row]);
cell.textLabel.text = [customRingtone objectAtIndex:indexPath.row];
dictionary
将返回:
"YBRZ.m4r" =
{
GUID = 17A52A505A42D076;
Name = "Wild West";
"Total Time" = 5037;
};
cell.textLabel.text
将返回:name: (null)
那么...你的问题是什么? – 2009-12-29 01:39:01
我怎样才能cell.textLabel =从阵列的名字? – WrightsCS 2009-12-29 01:48:54