title: List saved files in iOS documents directory in a UITableView?
body: <p>I have set up the following code to save a file to the documents directory:</p>
  
  <pre><code>NSLog(@"Saving File...");
  
  NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.reddexuk.com/logo.png"]];
  AFHTTPRequestOperation *operation = [[[AFHTTPRequestOperation alloc] initWithRequest:request] autorelease];
  
  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  NSString *path = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"logo.png"];
  operation.outputStream = [NSOutputStream outputStreamToFileAtPath:path append:NO];
  
  [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
      NSLog(@"Successfully downloaded file to %@", path);
  } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
      NSLog(@"Error: %@", error);
  }];
  
  [operation start];
  </code></pre>
  
  <p>However, I wish to add each file to a UITableView when it is successfully saved. When the file in the UITableView is tapped, I'd like a UIWebView to navigate to that file (all offline). </p>
  
  <p>Also - how can I just get the filename and ending such as "logo.png" instead of <a href="http://www.reddexuk.com/logo.png" rel="noreferrer">http://www.reddexuk.com/logo.png</a>?</p>
  
  <p>How can I do this?</p>