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 found the same issue and tried everything. I have two different apps, one in objective-C and one in swift - both have the same problem. The error message comes in the debugger and the screen goes black after the first photo. This only happens in iOS >= 8.0, obviously it is a bug.

I found a difficult workaround. Shut off the camera controls with imagePicker.showsCameraControls = false and create your own overlayView that has the missing buttons. There are various tutorials around how to do this. 
The strange error message stays, but at least the screen doesn't go black and you have a working app.
I'm using Phonegap, but this thread keeps coming as the first one when Googling about the error message.

For me this issue went away by defining the imagetype to PNG.

```
encodingType : Camera.EncodingType.PNG

```

So the whole line being:

```
 navigator.camera.getPicture(successFunction, failFunction, { encodingType : Camera.EncodingType.PNG, correctOrientation:true, sourceType : Camera.PictureSourceType    .PHOTOLIBRARY, quality: 70, allowEdit : false , destinationType: Camera.DestinationType.DATA_URL});

```

Your mileage may vary, but that did the trick for me.