/// <summary>
		/// Called after the controller’s view is loaded into memory.
		/// </summary>
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			// Create the plot view and set the model
			this.plotView = new PlotView ();
			this.plotView.Model = myClass.MyModel;

			// Set the frame and add the plot view to the view
			this.plotView.Frame = new RectangleF (0, 20, this.View.Frame.Width, this.View.Frame.Height - 20);
			this.plotView.AutoresizingMask = UIViewAutoresizing.All;
			this.View.AddSubview (this.plotView);
		}
Exemplo n.º 2
0
        public GraphViewController (ExampleInfo exampleInfo)
        {
            this.exampleInfo = exampleInfo;
			this.plotView = new PlotView ();
			this.plotView.Model = exampleInfo.PlotModel;
        }