Keyboard 显示带有文本字段的popover-键盘会导致闪烁

Keyboard 显示带有文本字段的popover-键盘会导致闪烁,keyboard,ios13,uipopoverpresentationcontroller,Keyboard,Ios13,Uipopoverpresentationcontroller,我想知道是否有人在PopoverPresentationController中遇到过奇怪的闪烁/动画。当文本字段成为第一响应者时,会发生闪烁。popover看起来几乎在现有popover的顶部重新打开 步骤/应用程序细分: MainViewController-带tableview的UIViewController public override void ViewDidLoad() { base.ViewDidLoad(); source = new TableSource(this)

我想知道是否有人在PopoverPresentationController中遇到过奇怪的闪烁/动画。当文本字段成为第一响应者时,会发生闪烁。popover看起来几乎在现有popover的顶部重新打开

步骤/应用程序细分:

MainViewController-带tableview的UIViewController

public override void ViewDidLoad() {
  base.ViewDidLoad();
  source = new TableSource(this);
  tableView = new UITableView(CoreGraphics.CGRect.Empty, UITableViewStyle.Grouped);
  tableView.TranslatesAutoresizingMaskIntoConstraints = false;
  tableView.RegisterClassForCellReuse(typeof(TableViewCell), "test");
  tableView.Source = source;
  View.AddSubview(tableView);

  source.Source.Add(new List<string> { 
    "Section 1, text Element 0",
    "Section 1, text Element 1",
    "Section 1, text Element 2",
    "Section 1, text Element 3",
    "Section 1, text Element 4",
    "Section 1, text Element 5",
    "Section 1, text Element 6",
   });

  tableView.TopAnchor.ConstraintEqualTo(View.TopAnchor).Active = true;
  tableView.LeftAnchor.ConstraintEqualTo(View.LeftAnchor).Active = true;
  tableView.RightAnchor.ConstraintEqualTo(View.RightAnchor).Active = true;
  tableView.BottomAnchor.ConstraintEqualTo(View.BottomAnchor).Active = true;
}


1) 单击单元格

public override void RowSelected(UITableView tableView, NSIndexPath indexPath) {
  PopoverView view = new PopoverView();
  view.View.BackgroundColor = UIColor.LightGray;
  view.ModalPresentationStyle = UIModalPresentationStyle.Popover;
  view.PopoverPresentationController.SourceRect = new CoreGraphics.CGRect(0, 40, 100, 100);
  view.PopoverPresentationController.SourceView = tableView;
  view.PreferredContentSize = new CoreGraphics.CGSize(300, 1000);
  controller.PresentViewController(view, true, null);
}
2) 启动popover
3) 单击文本字段

如果我更改选定行中的以下行:

view.PopoverPresentationController.SourceRect = new CoreGraphics.CGRect(0, 40, 100, 100);
致:

不过,如果popover链接到屏幕上不同位置的tableview单元格,闪烁就会停止,这并没有帮助

view.PopoverPresentationController.SourceRect = new CoreGraphics.CGRect(0, 40, 100, 100);
view.PopoverPresentationController.SourceRect = new CoreGraphics.CGRect(0, 0, 100, 100);