简体   繁体   English

如何使用c#设置文本字段

[英]How to set a text field up with c#

I am creating an ios app and in visual studio using storyboard.我正在使用故事板创建一个 ios 应用程序和视觉工作室。 I have created a text field and I want to let the userName = what ever the user inputs.我创建了一个文本字段,我想让 userName = 用户输入的内容。 I am using c#.我正在使用 C#。

You can create a textbox to achieve the user inputting.您可以创建一个文本框来实现用户输入。

Like the following:像下面这样:

string username = textBox1.Text;

If you want to know more about how it work in an ios app, you can refer to Hello, iOS – Quickstart .如果您想了解更多有关它在 ios 应用程序中的工作原理,可以参考Hello, iOS – Quickstart

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

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