开发者

how to add uiview all over views

开发者 https://www.devze.com 2023-01-14 07:12 出处:网络
i have a tabbar app with 4 tabs. i want to add a small view (frame is: 0, 390, 320, 50) just over the tabcontrollers. the view shows a picture (like banner).

i have a tabbar app with 4 tabs. i want to add a small view (frame is: 0, 390, 320, 50) just over the tabcontrollers. the view shows a picture (like banner). but i want to see it on all over tabs. not just first tab's view controllers. where should i add it? should i开发者_如何学JAVA use viewcontroller for it?


If you added your UITabBarController to the window in your AppDelegate, that adding the new UIView as a subview of the window will do the trick

0

精彩评论

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