How to create a global reference for iAd and implement in multiple Viewcontrollers

前端 未结 3 614
花落未央
花落未央 2021-01-12 19:23

I\'m having 5 ViewControllers in each of that i have to display iAd,so that i have to implement iAd code in each ViewControllers. Instead of that if i create

3条回答
  •  我在风中等你
    2021-01-12 20:11

    hi this looks like a good answer but don't you have to import the AppDelegate in your m files

    #import "AppDelegate.h" 
    

    and shouldn't you hide the add if no network connection or add not showing

提交回复
热议问题