Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

UIImagePickerController memory warning

$
0
0

I'm trying to create a MT.Dialog Element that supports the camera. I've basically modified ImageElement and set the Picker's SourceType to UIImagePickerControllerSourceType.Camera.

This works great, I get the camera View, can take a picture, and then select to Use it. However, at that point I get a memory warning and my app crashes.

This is what I'm doing in my Delegate:

public override void FinishedPickingMedia (UIImagePickerController picker, NSDictionary info)
{
    UIImage img = (UIImage)info.ObjectForKey (new NSString ("UIImagePickerControllerOriginalImage"))) {
    container.Picked (img);    
    table.ReloadRows(new NSIndexPath [] { path }, UITableViewRowAnimation.None);
}

Before I start down a long, dark debugging path, has anyone else seen this? Am I (not) doing something obvious with the Picker control? Can anyone else suggest an alternate approach?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>