开发者

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

开发者 https://www.devze.com 2023-01-16 21:45 出处:网络
I\'m developing a PhoneGap app, extending it with native stuff. I can 开发者_高级运维make an UIView like this:

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

精彩评论

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

关注公众号