You need to present the view controller. So you do not do it in view load but
as a result to some action, typically button touch. Use it as present modal
view controller.
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
UIImagePickerController Picker = new UIImagePickerController();
Picker.SourceType = UIImagePickerControllerSourceType.Camera;
Picker.Delegate = uiPicPreview;
}
private void myCameraButtonTouched(object sender, EventArgs e)
{
this.PresentModalViewController (Picker, true); // thats it your view
controller will be shown
}
Hope this helps.
-Pavel
--
Pavel Sich
@sichy
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch