开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜