简体   繁体   English

iPhone弹出式键盘

[英]iPhone Pop-Up Keypad

Okay I'm trying to have a custom keypad pop-up when I want to enter information. 好吧,当我想输入信息时,我正在尝试弹出自定义键盘。 I'm thinking the keypad can be a view itself and just pop-up when the user wants to enter information. 我认为键盘本身就是一个视图,只是在用户想要输入信息时弹出。 Any ideas or suggestions. 任何想法或建议。 I'm looking for something similar to the image below. 我正在寻找类似于下图的东西。

在此输入图像描述

You can use this, assuming myKeyboardViewController is a View Controller that handles a view called myView: 假设myKeyboardViewController是一个处理名为myView的视图的View Controller,你可以使用它:

myTextField.inputView = myKeyboardViewController.myView;

You can then create the view in interface builder. 然后,您可以在界面构建器中创建视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM