1
私はアプリケーションMonoTouch Iphoneを開発するために使用しますが、私はUIPopoverControllerを使用して問題があります。写真を選択するためのページを開くことができません。 私はcamera.cs TweetStationのクラスを使用します。あなたの助けのためのUIPopoverControllerとUIImagePickerControllerのMonotouchに関する問題
public static void SelectPicture (UIViewController parent, Action<NSDictionary> callback)
{
if(OzytisUtils.isIpad()){
picker = new UIImagePickerController();
UIPopoverController popover = new UIPopoverController(picker);
picker.Delegate = new CameraDelegate();
picker.SourceType = UIImagePickerControllerSourceType.PhotoLibrary;
popover.SetPopoverContentSize(new SizeF(parent.View.Frame.Width,parent.View.Frame.Height),true);
if(popover.PopoverVisible){
popover.Dismiss(true);
picker.Dispose();
popover.Dispose();
}else{
popover.PresentFromRect(parent.View.Frame,parent.View,UIPopoverArrowDirection.Right,true);
}
}else{
Init();
picker.SourceType = UIImagePickerControllerSourceType.PhotoLibrary;
_callback = callback;
parent.PresentModalViewController (picker, true);
}
ありがとう:
は、ここでは、コードです。