Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIToolBar on top of UITabBar?

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?

like image 904
Nic Hubbard Avatar asked Jan 21 '23 17:01

Nic Hubbard


1 Answers

You may be able to add the toolbar as a subview of your key window:

[[[UIApplication sharedApplication] keyWindow] addSubview:toolbarView]
like image 143
Justin Avatar answered Feb 02 '23 08:02

Justin