I have a class that is derived of UITableViewController and handles everything related with a specific type of tables. Let's call it Class T
In may main application class, Class A
, I have methods to populate other areas of the screen as, for instance, a map.
While I'm populating my table within Class T
, I would like to call the Class A
method that plots the x,y
points on the map.
Is this possible? What should be the correct way to do this?
When I though about this approach, I was expecting that invoking [super ...]
inside Class T
would call the Class A
methods, as this is the owner class of the instance, but ofcourse it call the parent class, in my case the UITableViewController
.
Thank you,
Pedro
If
A
is your main application class, you should be able to access the application instance with[UIApplication sharedApplication]
, cast it to the classA
type, and call the APIs you need to call.