Pregunta

I'm trying to achieve this behaviour enter image description here enter image description here

The view from the right should slide when dragging. I have the dragging behaviour in place, my only problem is that since the view that is dragged is a child of one of the tabbar's viewcontrollers it won't be on top of the UITabbar. How can I arrange my view hierarchy so that when I drag my view it will be on top of the UITabbar?

¿Fue útil?

Solución

Add the view higher in the hierarchy. If you do not support rotation, easiest solution would be to add as a subview of the window. If you do support rotation, window subviews are a mess to deal with, so go with the second best - add the subview to the tab bar's superview (normally, a container view of the UITabBarController). Remember to bring your newly added subview to front in the superview.

Cool layout, BTW! Why is the status bar's background a different color from the content?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top