开发者

reachability.m and .h + Global UIVIew for error

开发者 https://www.devze.com 2023-01-04 23:52 出处:网络
I added the reachability.m and .h files. When theres no internet connect开发者_运维百科ion, i want to display a UIView which is semi transparent and and comes up at the bottem like a Toolbar saying No

I added the reachability.m and .h files. When theres no internet connect开发者_运维百科ion, i want to display a UIView which is semi transparent and and comes up at the bottem like a Toolbar saying No internet Connection Available

I've got the code etc.. but i need a way to display the UIView i created and to push it to the front of everything when im using NAvigationControllers to control my application.

Could someone assist? Just need a way to push the UIView to the front but keep the nav controller on its current view so it can still go back and forth, the UIView is just a little transparant at the bottem like a pop up warning of no internet connection.

Thanks


You want the view to float above all other views but not respond to user input. You could make a new UIWindow to put the UIView in. Set the windowLevel of the window high enough to order it above other windows. Or you could add the view to the superview or window of the navigation controller.

[theNavController.view.window addSubview:theMessageView];

You could add it directly to the navigation controller view, but I think that is discouraged.

0

精彩评论

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

关注公众号