Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin.ios MonoTouch:UIPopoverController横向模式_Xamarin.ios_Uipopovercontroller - Fatal编程技术网

Xamarin.ios MonoTouch:UIPopoverController横向模式

Xamarin.ios MonoTouch:UIPopoverController横向模式,xamarin.ios,uipopovercontroller,Xamarin.ios,Uipopovercontroller,我正在展示一个UIPopoverController在UISplitView的细节中。应用程序始终以横向显示。问题是,当显示popover时,popover的内容以正确的方向显示,但popover的框架是横向的 这是显示popover的代码: _pc = new UIPopoverController(_pickList); _pc.SetPopoverContentSize(new SizeF(675, 400),true); var rect = _btnShowList.Frame; _

我正在展示一个UIPopoverController在UISplitView的细节中。应用程序始终以横向显示。问题是,当显示popover时,popover的内容以正确的方向显示,但popover的框架是横向的

这是显示popover的代码:

_pc = new UIPopoverController(_pickList);
_pc.SetPopoverContentSize(new SizeF(675, 400),true); 
var rect = _btnShowList.Frame;
_pc.PresentFromRect(rect,this, UIPopoverArrowDirection.Up, true);   
这是一个popover的屏幕截图,可以更好地说明我在说什么。

也许我没有看到问题:您将大小设置为675x400-这正是您的屏幕截图所显示的。你会期待什么?@Krumelur:看看府绸框架的左侧。它比其他的厚得多,并且略微嵌入。应该在框架的顶部。popover正在横向渲染它的框架,而内容的方向是正确的。这是内容的插入。它并不表示方向无效。