How do I create a view(which Shows balance) that stays onscreen while I switch between tabs?
-
21-04-2021 - |
문제
I have a UITabBarController
with 5 different items, each representing different views. These views represent a dialpad, contacts, call history, etc. Selecting a different tab switches to a different UIViewController
and displays a different view, as is standard.
However, I'd like to display a persistent view that does not switch when different selections are made on the tab bar. How can I display such a view that remains onscreen at all times? I am using View based application
해결책
if any view which need to be remain visible throughout the app, should be added to UIWindow
And Then to show view in particular screen use
yourView.alpha =1.0;
[window bringSubviewToFront:yourView];
Hide View
YourView.alpha = 0.0;
제휴하지 않습니다 StackOverflow