Question: I want to implement a listview, on which swiping opens up the `actions` that we can do with that item. I have attached an image.

![enter image description here](https://i.stack.imgur.com/j0ayI.jpg)

Answer: 
You can modified `saveImage` and `loadImage` function as per below. 

```
-(void)saveImage: (UIImage*)image filePath:(NSString*)fileNameEmail
{
     if (image != nil)
     {
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        NSString *filePath = [[paths objectAtIndex:0] stringByAppendingPathComponent:fileNameEmail];

        NSData* data = UIImagePNGRepresentation(image);
              [data writeToFile:filePath atomically:YES];

     }
}

- (UIImage*)loadImage:(NSString*)fileNameEmail
{
     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
     NSString *filePath = [[paths objectAtIndex:0] stringByAppendingPathComponent:fileNameEmail];
     UIImage *image = [[UIImage alloc] initWithContentsOfFile:filePath];
     return image;
}

```

**Edit** : You can get specific image like below.

```
-(UITableViewCell *)tableView:(UITableView *)tableView  cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];

    cell.youimageview.image = [self loadImage:[[yourArray indexOfObject:indexPath.row] valueForKey:@"youemailkey"]];
    return cell;
}

```

may this help you.
By using the below code we can asynchronously paste image on table view cell.

```
NSString *imageName=[NSString stringWithFormat:@"%@.png",d.emailId];

UIImage *image = [self loadImage:imageName];  
if (image==nil)
{
    [imgProfilePic setImage:[UIImage imageNamed:@"userEdit.png"]];
}
else
{
    [imgProfilePic setImage:image];
}
photos =image;

NSLog(@"^^^^^^^^^^^^^^%@",photos);

[cell.contentView addSubview:imgProfilePic];

```