What does the iAd `UIViewController` category `canDisplayBannerAds` do?
问题 In iOS7, the iAds framework includes the category -[UIViewController canDisplayBannerAds] . What does this category do and how should I use it? 回答1: The headers for canDisplayBannerAds state: Set this to enable automatic management of banner ad display with the view controller. It's important to note that this will modify the view hierarchy of the view controller by inserting a new container view above the view controller's view. The impact is that the view controller's view property will no