我无法从 UIPopover 中关闭键盘。当我运行此ResignFirstResponder()
功能时,我有弹出框形式的文本字段,没有任何反应。不知道为什么有任何想法。只有当我从弹出窗口运行它时才会发生。
是不是因为它叠加和对象。需要帮忙?
这是我的代码的一些示例: 这里我调用 popover;
if (this.CustomerID != 0) {
var content = new BillingAddressViewController (this, this.CustomerBillingAddress);
content.CustomerID = this.CustomerID;
content.rootcontroller = this;
DetailViewPopover = new UIPopoverController (content);
DetailViewPopover.PopoverContentSize = new SizeF (300, 200);
DetailViewPopover.PresentFromRect (this.customerBillingAddressCell.Frame, View, UIPopoverArrowDirection.Any, true);
} else {
var x = new UIAlertView ("Notifcation Message", "Please choose customer to proceed with Billing Address", null, "OK");
x.Show ();
}
};
我正在调用的 popover 内容类内部
this.billingTextView.ResignFirstResponder();
按钮触发;