Example #1
0
		public override void FinishedPickingImage (UIImagePickerController picker, UIImage image, NSDictionary editingInfo)
		{	
			UIApplication.SharedApplication.SetStatusBarHidden(false, false);
			
			var imagePicker = (VCViewController)_navigationController;
			if (imagePicker.IsCameraAvailable)
				imagePicker.btnBib.Hidden = true;
						
			imagePicker.DismissModalViewControllerAnimated(true);
			
			if (imagePicker.IsCameraAvailable)
			{
				image.SaveToPhotosAlbum (delegate {
					// ignore errors
					});
			}
			
			UIViewController nextScreen = null;
			
			if (tweet != null)
			{
				nextScreen = new PhotoPostViewController(_shareNavCont, image, tweet);
			}
			else
			{
				nextScreen = new PhotoLocationViewController(_shareNavCont, image);				
			}
			
			_shareNavCont.PushViewController(nextScreen, true);
		}	
        void OnPhotoChosen(UIImagePickerController picker, UIImage photo)
        {
            Photograph = PhotoManager.ScaleToSize (photo, (int) PhotoWidth, (int) PhotoHeight);

            if (picker.SourceType == UIImagePickerControllerSourceType.Camera)
                photo.SaveToPhotosAlbum (OnPhotoSaved);
            else
                photo.Dispose ();

            popover.Dismiss (true);
        }
			public override void FinishedPickingImage (UIImagePickerController picker, UIImage image, NSDictionary editingInfo)
			{
				if (picker.SourceType == UIImagePickerControllerSourceType.Camera)
				{
					image.SaveToPhotosAlbum(delegate(UIImage savedImage, NSError error) {
						_controller.SaveImage(savedImage);
					});
				}
				else 
				{
					_controller.SaveImage(image);
				}
				picker.DismissModalViewControllerAnimated(true);
			}