I wat to do something like this:
if (viewController.mapView) [viewController.mapView someMethod];
However, if mapView is not a class variab
Oops, found it:
if ([vc respondsToSelector:@selector(mapView)]) { [[vc mapView] viewWillAppear:YES]; }