views:

105

answers:

1

how to set iAds so the application does not crash on older OS (3.0 - 3.2)

A: 

I suppose you need to do 2 things (hope I haven't missed anything):

  1. Link with iAd framework as 'weak': Target->Info->Linked Libraries -> Set library type as weak
  2. Check if iAd classes are present in run-time before use them e.g.:

    Class adBannerClass = NSClassFromString(@"ADBannerView");
    if (adBannerClass)
        // Work with banner
    
Vladimir