I'm trying to develop something like the playback bar in Apple Music. A common view that appears at the bottom of all the view controllers of a UITabbarContoller. Is there any idea or a best practice to achieve this ?
Well, I'll just put down my personal solution
I don't really like embedding a view controller to the tab bar controller. Just let me know if there is a better solution.
UITabBar
has UINavigationController
which has all the separate UIViewController
s. If you want this view in each tab, then best way to do it is to add it on top of the UINavigationController
s view. It will appear on top of whatever is in UINavigationController
.
You can add that view to window as subview
[self.window addSubview:vw];
with a tag
vw.tag = 10000;
so that you can see that view throughout the app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With