Creating the bindings
Our first step is to build the user interface. We are going to add two UIButtons
, UILabel
, and UIImageView
to the view controller:
public override void ViewDidLoad () { base.ViewDidLoad (); var mainView = new UIView () { TranslatesAutoresizingMaskIntoConstraints = false, BackgroundColor = UIColor.White }; var imageView = new UIImageView() { TranslatesAutoresizingMaskIntoConstraints = false, ContentMode = UIViewContentMode.ScaleAspectFit, Image = new UIImage("audio.png") }; var descriptionLabel = new UILabel () { TranslatesAutoresizingMaskIntoConstraints = false, TextAlignment = UITextAlignment.Center }; var audioPlayerButton = new UIButton (UIButtonType.RoundedRect) ...