public override void ViewDidLoad() { base.ViewDidLoad(); View.BackgroundColor = UIColor.Clear; Dialog = new EBDialogViewController(); Dialog.AddToView(View, NSLayoutConstraint.Create(Dialog.View, NSLayoutAttribute.CenterY, NSLayoutRelation.Equal, View, NSLayoutAttribute.CenterY, 1, 0), NSLayoutConstraint.Create(Dialog.View, NSLayoutAttribute.CenterX, NSLayoutRelation.Equal, View, NSLayoutAttribute.CenterX, 1, 0), NSLayoutConstraint.Create(Dialog.View, NSLayoutAttribute.Leading, NSLayoutRelation.Equal, View, NSLayoutAttribute.Leading, 1, 5) ); DisplayProfile(); }
public override SCNScene GetInitialScene() { Label = new UILabel { BackgroundColor = UIColor.Black.ColorWithAlpha(.5f), Font = UIFont.FromName("Apple-Kid", 24), TextColor = UIColor.White, Lines = 0, TranslatesAutoresizingMaskIntoConstraints = false }; var c = new EBDialogViewController(); c.AddToView( View, NSLayoutConstraint.Create(c.View, NSLayoutAttribute.CenterX, NSLayoutRelation.Equal, View, NSLayoutAttribute.CenterX, 1, 0), NSLayoutConstraint.Create(c.View, NSLayoutAttribute.Top, NSLayoutRelation.Equal, View, NSLayoutAttribute.Top, 1, 60), NSLayoutConstraint.Create(c.View, NSLayoutAttribute.Width, NSLayoutRelation.Equal, View, NSLayoutAttribute.Width, 1, -100)) ; c.SetContent(Label); return(base.GetInitialScene()); }