problem with pathForResource

Posted by mr.octobor on Stack Overflow See other posts from Stack Overflow or by mr.octobor
Published on 2010-05-04T16:51:52Z Indexed on 2010/05/07 3:08 UTC
Read the original article Hit count: 375

Filed under:
|
|

HI all I have problem with

NSString *filePaht = [[NSBundle mainBundle] pathForResource:(NSString *)name ofType:(NSString *)ext];

if I used NSString *filePaht = [[NSBundle mainBundle] pathForResource:@"soundName" ofType:@"aiff"]; it's OK

but when I used NSString *fileName = [[file.list objectAtIndex:index] objectForKey:@"soundName"]; NSString *filePaht = [[NSBundle mainBundle] pathForResource:fileName ofType:@"aiff"]; It's not work

have any idea !?

Thanks

© Stack Overflow or respective owner

Related posts about nsbundle

Related posts about nsurl