UIImageView.Image to mail attachment with MonoTouch
I am new to MonoTouch and I am trying to send an email with an image as attachment that a user will tame from camera or pick from gallery. I have created the program and it runs correctly (I have an imageview controller which loads an image from uiimagepicker to imageview. Then I call MFMailComposeViewController but I don't know how to pass the image from imageview to addAttachmentdata method. I suppose first I have to save the image from imageview as a file but I don't know how to do it and I can't find documentation for it. First you need to turn the UIImage into an NSData , e.g. using AsPNG