-
Book Overview & Buying
-
Table Of Contents
Learning Xamarin studio
By :
Let's manually create a ViewController that consists of a label, text field, and button:
In Xamarin Studio, create a new solution by going to iOS | Empty Application, and name it UpdateLabelApplication.
Right-click on the UpdateLabelApplication project and select Add File….
Select a file by going to iOS | iPhone View Controller.
Name the file UpdateLabelViewController and click on the New button.
If Xcode does not open Interface Builder automatically, open the file from the Solution Explorer pad.
Switch to the assistant view, and open the UpdateLabelViewController.h file in the right pane using the jump bar.
Using the Object Library in the Utility Area, drag-and-drop a Text Field, Button, and Label control onto the view in the left pane of Interface Builder. Your view should look something like the following screenshot:

Holding down the Ctrl key, select the text field and drag a wire across to the .h file, releasing just below the @interface label.
Create an...
Change the font size
Change margin width
Change background colour