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

标签 c# ios xamarin uiviewcontroller xamarin.ios

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

谢谢, 乔希

最佳答案

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

myUITextField.BecomeFirstResponder();

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

相关文章:

ios - tableView 在超过 16 个项目时崩溃

ios - 音频单元记录噪音

ios - 仅在 iPhone5s 和更高版本中覆盖 TableView 部分

ios - 当前位置纬度和经度在 iOS 7 到 IOS 8 中的不同行为

c# - 双击 View 事件

xamarin - 如何创建具有属性的自定义控件

c# - Excel 互操作 : Fastest way to change color of portions of text in a huge range of cells

c# - 如何根据属性合并两个对象列表并将重复项合并到新对象中

c# - 搜索 C# 代码以查找未接来电

c# - 为什么在可空类型上使用 += 会导致 FORWARD_NULL 缺陷