encapsulate iAd implementation?
I have been doing a lot of cut-and-paste programming to put iAd into different apps. Is it possible to encapsulate it somehow?开发者_如何转开发
Of course.
You can create a view controller, and the view it manages is the iAd view.
Have this view controller implement the iAd delegate protocols and then you can create an instance of this view controller and add its view as subviews of other views throughout your app.
Simples :)
精彩评论