开发者

Adwhirl in UIWindow

Can Any one help me How to integrate Adwhirl in UIWindow instead of adding in in each ViewController, or please refer any one of t开发者_如何学JAVAhe sample code refer to this problem... Thanx in advance...


Views get added to the window, the window doesn't inherently have anywhere to display anything, I think. As the documentation states:

The two principal functions of a window are to provide an area for displaying its views and to distribute events to the views.

If you wanted, you could probably instantiate your adWhirlView in the app delegate, and then reference it within each view you're presenting. You'd still have to add the adWhirlView to each view yourself, but you wouldn't have to create it new each time.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜