Question: So i've been trying to get one record and edit it by pressing the button that is created in that table, but honestly, i have no idea how to do that. Dx Can anyone help me with this? (Yes, i want the button created for each record. You know, so at the end of every row in the table, every record will have it's own button.)

```
while($rArt = mysqli_fetch_array($sql)){
 echo '<tr><td>' . $rArt['ArtID'] . '</td>';
 echo '<td>' . $rArt['FiliaalID'] . '</td>';
 echo '<td>' . $rArt['Productnaam'] . '</td>';
 echo '<td>' . $rArt['Inkoopprijs'] . '</td>';
 echo '<td>' . $rArt['Voorraad'] . '</td>';
 echo '<td>' . $rArt['Min_voorraad'] . '</td>';
 $voo = $rArt['Voorraad'];
 $minvoo = $rArt['Min_voorraad'];
 $nodig = $minvoo * 2 - $voo;
 $chosen = $rArt['ArtID'];
 echo '<td>' . $nodig . '</td>';
 echo '<td><input type="submit" name="bestel" value="Bestel"></td></tr>';

 if(isset($_GET['bestel'])){
  $query = mysqli_query($mysql, "
   UPDATE artikel a, voorraad v
   SET v.voorraad = v.voorraad + '$nodig'
   WHERE a.artid = v.artid
   AND v.voorraad = '$chosen'");
 }
}

```

Answer: 
I don't have enough reputation points to comment on @greg's answer above, so will add my observations here. I have a Swift project for both iPad and iPhone. I have a method inside my main view controller (relevant bit below). When I test this on a phone, everything works properly and no warnings are generated. When I run it on an iPad, everything works properly but I see the warning about snapshotting the view. The interesting bit, however, is that when I run on an iPad without using the popover controller, everything works properly with no warning. Unfortunately, Apple mandates that the image picker must be used within a popover on iPad, if the camera is not being used.

```
    dispatch_async(dispatch_get_main_queue(), {
        let imagePicker: UIImagePickerController = UIImagePickerController();
        imagePicker.sourceType = UIImagePickerControllerSourceType.SavedPhotosAlbum;
        imagePicker.mediaTypes = [kUTTypeImage];
        imagePicker.allowsEditing = false;
        imagePicker.delegate = self;

        if(UIDevice.currentDevice().userInterfaceIdiom == .Pad){ // on a tablet, the image picker is supposed to be in a popover
            let popRect: CGRect = buttonRect;
            let popover: UIPopoverController = UIPopoverController(contentViewController: imagePicker);
            popover.presentPopoverFromRect(popRect, inView: self.view, permittedArrowDirections: UIPopoverArrowDirection.Up, animated: true);
        }else{
            self.presentViewController(imagePicker, animated: true, completion: nil);
        }
    });

```
I'm pretty sure this is just a bug in iOS 8.0. It's reproducible with the simplest of POC apps that does nothing more than attempt to present a UIImagePickerController like you're doing above. Furthermore, there's no alternative pattern to displaying the image picker/camera, to my knowledge. You can even download Apple's Using UIImagePickerController sample app, run it, and it will generate the same error out of the box.

That said, the functionality still works for me. Other than the warning/error, do you have issues with the functioning of your app?