public UIViewController _createRotatingViewController() { var rvc = new RotatingViewController(); rvc.PortraitViewController = new UIViewController { View = new UIView { BackgroundColor = UIColor.Blue } }; rvc.LandscapeLeftViewController = new TestViewController { View = new UIView { BackgroundColor = UIColor.Green } }; rvc.LandscapeRightViewController = new UIWebImageViewController(); rvc.PortraitViewController.View.AddSubview(new UILabel { Text = "PortraitView. Rotate for more.", Frame = new System.Drawing.RectangleF(10, 10, 300, 40), BackgroundColor = UIColor.Blue }); rvc.LandscapeLeftViewController.View.AddSubview(new UILabel { Text = "LandscapeLeftView.", Frame = new System.Drawing.RectangleF(10, 10, 300, 40), BackgroundColor = UIColor.Green }); return(rvc); }
public UIViewController _createRotatingViewController(){ var rvc = new RotatingViewController(); rvc.PortraitViewController = new UIViewController{View = new UIView{ BackgroundColor = UIColor.Blue }}; rvc.LandscapeLeftViewController = new TestViewController{View = new UIView {BackgroundColor = UIColor.Green}}; rvc.LandscapeRightViewController = new UIWebImageViewController(); rvc.PortraitViewController.View.AddSubview(new UILabel { Text = "PortraitView. Rotate for more.", Frame = new System.Drawing.RectangleF(10,10,300,40), BackgroundColor = UIColor.Blue}); rvc.LandscapeLeftViewController.View.AddSubview(new UILabel { Text = "LandscapeLeftView.", Frame = new System.Drawing.RectangleF(10,10,300,40), BackgroundColor = UIColor.Green}); return rvc; }