开发者

Prog. created UIWebView gets on top all other elements

I'm creating a UIWebView programmatically and giving it f开发者_开发知识库ull width and height, but it puts itself on top of all other elements. I've got a couple of buttons and a UIActivityIndicatorView that I want to be on top of that UIWebView.

How do I change the "layering" programmatically? On IB I can move them on the object list, but this last item it's inserted programmatically.


[self.view insertSubview:WebView atIndex:0];

Try this code and this will made your webb always in the background of the view....


Try this:

[self.view sendSubviewToBack:webView];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜