gpt4 book ai didi

c# - 如何使数字键盘出现在 Xamarin.iOS 中的 View Controller 条目上?

转载 作者:行者123 更新时间:2023-11-28 20:56:14 28 4
gpt4 key购买 nike

我想让数字键盘出现在 View Controller 的入口处。我需要在后端添加什么才能做到这一点,我会把它放在 ViewDidLoad() 中吗?

谢谢,乔希

最佳答案

在您的 View 中的任何 UITextField(或其他键盘控件)上调用 BecomeFirstResponder

myUITextField.BecomeFirstResponder();

关于c# - 如何使数字键盘出现在 Xamarin.iOS 中的 View Controller 条目上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52142209/

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