Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 3 of 3
  1. Thread AuthorThread Author   #1  
    rajini011981's Avatar
    iPhone Nanite

    1 Posts

    Question Downloaded graphics from safari

    Hello Experts,
    I have a very basic question.
    How can i access the graphic files downloaded using safari in objective C?
    I used
    listOfItems = [NSMutableArray alloc initWithArray:[[NSFileManager defaultManager] directoryContentsAtPath:@"/private/var/mobile/Library/Downloads/" pathsMatchingExtensions:NSArray arrayWithObjects:@"GIF", @"JPG" , nil]]
    But it not works, not displaying any file.
    Could you please advice that how can i access them?
    Thank you.
  2. #2  
    RedPix's Avatar
    iPhone Nanite

    4 Posts


    With the published API, your application cannot access the file system outside of the application folder.
  3. #3  
    flyingember's Avatar
    iPhone Elite

    1,986 Posts
    Global Posts
    2,026 Global Posts


    open a stream to the website in question and download them from there

Posting Permissions