public override void ViewWillAppear (bool animated) { base.ViewWillAppear (animated); // Host the graph host = new CPTGraphHostingView (new RectangleF (10, 40, 300, 300)) { HostedGraph = Graph }; View.AddSubview (host); }
public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); // Host the graph host = new CPTGraphHostingView(new RectangleF(10, 40, 300, 300)) { HostedGraph = Graph }; View.AddSubview(host); }
public override void ViewWillAppear (bool animated) { base.ViewWillAppear (animated); if (UIDevice.CurrentDevice.CheckSystemVersion (7, 0)) EdgesForExtendedLayout = UIRectEdge.None; // Host the graph host = new CPTGraphHostingView (new RectangleF (10, 40, 300, 300)) { HostedGraph = Graph }; View.AddSubview (host); }
private void Initialize() { var graph = new CPTXYGraph (this.Frame, CPTScaleType.Linear, CPTScaleType.Linear) { Title = "Stock History", BackgroundColor = new CGColor(0.982f, 0.982f, 0.890f) }; var host = new CPTGraphHostingView (this.Frame) { HostedGraph = graph, BackgroundColor = UIColor.Red }; this.AddSubview (host); this.BackgroundColor = UIColor.Red; }
public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); if (UIDevice.CurrentDevice.CheckSystemVersion(7, 0)) { EdgesForExtendedLayout = UIRectEdge.None; } // Host the graph host = new CPTGraphHostingView(new RectangleF(10, 40, 300, 300)) { HostedGraph = Graph }; View.AddSubview(host); }
private void Initialize() { var graph = new CPTXYGraph(this.Frame, CPTScaleType.Linear, CPTScaleType.Linear) { Title = "Stock History", BackgroundColor = new CGColor(0.982f, 0.982f, 0.890f) }; var host = new CPTGraphHostingView(this.Frame) { HostedGraph = graph, BackgroundColor = UIColor.Red }; this.AddSubview(host); this.BackgroundColor = UIColor.Red; }