Posted By


BenClayton on 09/14/10

Tagged


Statistics


Viewed 586 times
Favorited by 0 user(s)

iPhone SDK: Check file exists


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // check file exists..
  2. BOOL isDirectory = NO;
  3. if ( [[NSFileManager defaultManager] fileExistsAtPath:path isDirectory: &isDirectory ] ) {
  4. // use the file
  5. } else {
  6. // file not there
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.