Child UIView underneath the translucent bar of UINavigationController - uinavigationcontroller

The root view of my UINavigationViewController sits nicely underneath the the translucent nav bar. However when I push child views, they get aligned below the nav bar. How come?

The UINavigationController's view has its origin below the navbar, most likely to make sure the controller always works the same way. Maybe this'll help:
Navigation Controller Transparent Bar Style is not working

Related

Content beneath app bar is not shrinking in material ui

I have added two navBar one after another, where the top Nav bar has a side drawer where the content beneath inside is shrining on clicking toggle button. While in other hand i am displaying another Nav bar beneath first nav bar, it also has a side drawer but while toggling it the content inside is not shrinking. I have tried that in all possible ways. Pls help me to fix that. Here i ma sharing the code sandbox link for that.https://codesandbox.io/s/persistentdrawer-pygrt?file=/PersistentDrawer.js
Thanks in advance

UINavigationBar disappears on scroll

I have a UINavigationBar that is configured to Hide Bars on Swipe. The Nav bar hides when I scroll down, but does not reappear when I scroll upward. I have to tap to get the Nav bar to reappear. All views in this VC are configured via Auto Layout (no code).
I've solved this. My scroll view was pinned to the top and bottom layout guide. I pinned it to the top and bottom superview, and the Nav Bar's behavior was corrected.
Thanks!

Way to make content that scrolls under a navigation bar invisible but the bar have transparency

I have no idea how to go about this:
I have a full-screen background image, a navigation bar with 50% transparency fixed to the top, and content below it. How can I have the navigation bar maintain transparency over the background image, and still have scrolling content?
The issue right now is that when I scroll down, the content goes under the navigation bar, and shows through the transparency, which obviously looks awful.
Basically, I want the content of the page to scroll and disappear at the bottom of the navigation bar. I know I could make the navigation bar opaque and use a background image for that too, but I'd rather just have the one full-screen background image.
Thoughts?
Put the contents in a block (div) that has fixed size, say stretch it to the whole page except the size of the navigation bar. Then make that div scrollable with css property overflow:scroll
I know this is very old but I spent a lot of time looking for the answer and found a good solution so I will post it for anyone else looking for it.
Place the navbar in the element containing the background image and set the navbar's background to inherit. This prevents content from appearing behind the navbar as you scroll down.

Creating absolute positioned div that becomes fixed on scroll - is it possible?

I had this idea for a website of creating a fixed horizontal navigation bar that simply scrolls through the content when you press the menu items but I wanted to have an "introduction" div on top of it with a background image and a logo, lets say of 300px height that displays when you first load the page.
So the navigation bar would appear attached to the bottom of this "introduction" div and only when you scrolled past it would it become attached to the top of the window and become fixed positioned when you scrolled.
If you clicked a certain menu item or if you simply scrolled up to the start of the page it would attach itself to the bottom of the "introduction" div again.
Is this possible to do simply with CSS or would I have to use javascript to achieve this effect?
Thanks in advance!
I think you'll need JavaScript for this one. It will not be hard however. The only thing you need to do is to switch the positioning of the menu to 'fixed' when the menu would otherwise scroll out of the viewport.

Float aspx menu on center of screen during horizontal scroll

I have a static aspx menu. (horizontal)
I have content on the screen the sometimes requires horizontal scroll.
I would like to keep the menu the width of the visable screen and centered while scrolling. AKA. the menu would stay in the same position on the screen even when the user scrolls.
Is this possible?
Thanks in advance!
EDIT: I'm relaly looking for simple. Even something that would just keep the menu items aligned left would work for me. So the menu bar can go all the way accross, but the items in it would align left, so the right most part fo the menu bar would be empty on longer screens...
Try this one..it works well for me. It uses jquery & css. I put it on my masterpages.
http://net.tutsplus.com/html-css-techniques/creating-a-floating-html-menu-using-jquery-and-css/
You can adjust the css to position it wherever you like

Resources