Search code examples
c#.netvisual-studiostoryboarduser-input

How to set a text field up with c#


I am creating an ios app and in visual studio using storyboard. I have created a text field and I want to let the userName = what ever the user inputs. I am using c#.


Solution

  • 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.