I built an App with the CorePlot framework for iPhone. I implemented 3 classes with 3 different charts, each one with is own screen. Now i want to built the same App for iPad, which is my first app for this device.
On the iPad, i want to show all 3 charts in the same screen, but i want to keep it modular. How do i do this? Any suggestions?
So, basically you have three separate controllers that you display within a tab bar controller on the iPhone.
What you could do to show the 3 graphs together in a view and keep the design modular is:
create a containing controller;
in
viewDidLoad, create your 3 graphs controllers and then do:in
viewWillAppearandviewDidAppearrelay those messages to the 3 sub-controllers;do the same as in 3. for autorotation methods.
This approach will work for all iOS versions.
If you are targeting iOS>5, you can use UIViewController Containment, where you can define your 3 controllers as child controllers of your main controller and add/remove them at will.