>                 public override void FinishedPickingMedia 
> (UIImagePickerController picker,
> NSDictionary info)
>                 {
>                         var originalImage = new 
> NSString("UIImagePickerControllerOriginalImage");
>                         UIImage image = (UIImage) info[originalImage];
>                         image.SaveToPhotosAlbum(delegate(UIImage img, NSError 
> err){
>                                 Console.WriteLine("Saved!");
>                         });
>                         UIImageView imageView = new UIImageView(new 
> RectangleF(0f, 0f, 450f,
> 580f));
>                         imageView.Image = image;
>                         _sp.View.AddSubview(imageView);

why not call

_sp.SpaceImage.Image = image;

here? You are adding a new image view, and it may not be showing up
correctly. But you said you already had one, so why not just reuse it?

>                         _sp.DismissModalViewControllerAnimated(true);

This would dismiss the whole thing? are you trying to just dismiss the popup?




>                         Console.WriteLine ("Did finish picking media");
>                 }
>         }
> }
>
>
> This is what I am doing to open the popup imagegallery.
>
> partial void BrowseAssemblyPhotoClick (MonoTouch.UIKit.UIButton sender)
>                 {
>                         if(popover==null||popover.ContentViewController==null)
>                         {
>                                 imagepicker=new UIImagePickerController();
>                                 popover=new UIPopoverController(imagepicker);
>                                 AssemblyImagePickerDelegate imgDel=new 
> AssemblyImagePickerDelegate();
>                                 imagepicker.Delegate=imgDel;
>                                 
> imagepicker.SourceType=UIImagePickerControllerSourceType.PhotoLibrary;
>
>                         }
>                         if(popover.PopoverVisible)
>                         {
>                                 popover.Dismiss (true);
>                                 imagepicker.Dispose ();
>                                 popover.Dispose ();
>                                 return;
>                         }
>                         else
>                         {
>                                 
> popover.PresentFromRect(btnBrowseAssemblyPhoto.Frame, this.View,
> UIPopoverArrowDirection.Any, true);
>                         }
>                 }
>
>
> I simply can't get my head around how to assign the picked image {if I'm not
> wrong that's the info[originalimage]} to be set as the image for my blank
> SpaceImage control.
>
> What exactly is the trick? Sorry I'm kind of brickheaded.
>
>
> Look forward to some help on this.
>
> Many Thanks.
>
>
>
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Take-Pictures-with-IPHone-Camera-tp4656124p4656298.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to