Using example from the link below
http://es.infragistics.com/community/blogs/torrey-betts/archive/2013/04/25/custom-axis-labels-on-ios-charts-objective-c-and-c.aspx
If I add the igViewController in the example inside another controller, the labels no longer appear. Any ideas?
SecondUIViewController code:...- (void)viewDidLoad{ [super viewDidLoad]; igViewController *controller = [[igViewController alloc]init]; [self.view addSubview:controller.view]; [controller.view setFrame:self.view.frame];}
You would want to copy the code from igViewController implementation in to your own view controller. Any mention of igViewController would be changed to your view controller name, which in the case of your example above would be SecondUIViewController.
That would defeat my purpose. I'm trying to create a reuseable chart, similar to igViewController, then add it multiple times to another view.
If you want to create a reusable chart then you would need to create a view that can be added to your view controller. Attached you'll find an example view that houses the same chart from the blog post you were referencing. Once the files are added to your project, you'd create an instance of it in your viewDidLoad method.
ExampleChartView *_exampleChartView = [[ExampleChartView alloc] initWithFrame:self.view.bounds];_exampleChartView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;[self.view addSubview:_exampleChartView];