开发者

How to get a main (window?) UIView in iOS?

I'm developing a PhoneGap app, extending it with native stuff.

I can 开发者_高级运维make an UIView like this:

[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]

and show some stuff like ActionSheets here. But the MBProgressHUD doesn't show up in this view.

So how do I get the main view (or the PhoneGap's WebView)?


Woohoo! Solved it by defining a global with the UIWebView which I can access in the app delegate's webViewDidStartLoad.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜