开发者

iAds application crashing on OS 3.0 - 3.2

开发者 https://www.devze.com 2023-01-10 22:10 出处:网络
how to set iAds so the a开发者_如何学JAVApplication does not crash on older OS (3.0 - 3.2)I suppose you need to do 2 things (hope I haven\'t missed anything):

how to set iAds so the a开发者_如何学JAVApplication does not crash on older OS (3.0 - 3.2)


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
    
0

精彩评论

暂无评论...
验证码 换一张
取 消