문제

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;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top