gpt4 book ai didi

iphone - 在弹出窗口中显示 DatePicker 后触摸焦点更改

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:51:08 24 4
gpt4 key购买 nike

我有一个 UIViewController。在我看来 (xib),我有一个 UIButton 和一个 UIToolBar。在“Touch Up Inside”中,我有以下内容:

    UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:ec];
nc.modalPresentationStyle = UIModalPresentationFormSheet;

[self presentModalViewController:nc animated:YES];

“ec”是一个 UITableViewController。对于此 View (xib),我有包含三个文本字段的三行。在一个文本字段中,我将“inputView”设置为 UIDatePicker。如果我将焦点放在这个文本字段上,日期选择器就会按预期显示。当我将焦点放在另一个文本字段上时,键盘就会出现。但是当我关闭弹出窗口时,UIButton 和 UIToolBar 右侧导航按钮似乎不起作用。实际上是这样,但我必须单击控件上方大约一英寸才能再次触发弹出窗口。什么给了?!

最佳答案

很抱歉迟到的帖子,但发现应用程序正在重新计算 View 坐标,这导致它被取消了。修复此问题后,一切都很好。

关于iphone - 在弹出窗口中显示 DatePicker 后触摸焦点更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10844073/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com