Introduction to User Interface Objects in Xamarin.iOS
- PDF for offline use
- Sample Code:
- Related Articles:
- Related SDKs:
Let us know how you feel about this
Xamarin.iOS exposes all the native user interface objects provided by Apple. They are easily added to Xamarin.iOS applications using the iOS Designer, Xcode's Interface Buildier or programmatically. Regardless of which method you choose, Xamarin.iOS exposes all the user interface object properties and methods in C#.
This document will introduce some of the most common iOS user interface controls and how to use them, including:
- UILabel – Read-only text display,
- UITextField – Editable single-line text input,
- UITextView – Editable, scrolling multi-line text input,
- UIButton – The default round-rectange button style,
- UISlider – Range slider,
- UIImageView – Image display.
The article includes a sample application to demonstrate the various controls. A screenshot of the sample app is shown below:
In addition to using these controls, you will also learn a little about theming an app by applying the same colors to all your controls, as well as layouts that adapt when the device is rotated.