I'm trying to use code such as the following Objective-C in MonoTouch:
if (NSClassFromString(@"ADBannerView"))
What is the equivalent in C#?
Basically I'm wanting to use iAd, but I need to check for the existance of ADBannerView
and ADInterstitialAd
, because they are not available on all versions of the OS. (And I'd rather do feature checking than iOS version checking)
I think this could be helpful in other situations as well.