开发者

encapsulate iAd implementation?

开发者 https://www.devze.com 2023-02-01 14:40 出处:网络
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.

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 :)

0

精彩评论

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