How can you determine if a file exists within the app bundle?

Posted by Magic Bullet Dave on Stack Overflow See other posts from Stack Overflow or by Magic Bullet Dave
Published on 2010-01-07T22:54:58Z Indexed on 2010/03/19 16:01 UTC
Read the original article Hit count: 353

Filed under:
|
|

Sorry, dumb question number 2 today. Is it possible to determine if a file is contained within the App Bundle? I can access files no problem, i.e.,

NSString *pathAndFileName = [[NSBundle mainBundle] pathForResource:fileName ofType:@"plist"];

But can't figure out how to check if the file exists there in the first place.

Regards

Dave

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk