问题
When in the Camera Roll section of the Photos app, you can click the top right button to edit the photos. This replaces the bottom tab bar with three new buttons which are in a UIToolBar.
I would like to do something similar, but I cannot get my UIToolBar to be on TOP of the tab bar. Is there a way to specify the layer order? Or do I need to do something different?
回答1:
You may be able to add the toolbar as a subview of your key window:
[[[UIApplication sharedApplication] keyWindow] addSubview:toolbarView]
来源:https://stackoverflow.com/questions/3331339/uitoolbar-on-top-of-uitabbar