Anyone had this problem before ?
I had set my navigation bar to be transparent .When i push to a new view controller the view does not overlap the navigation bar . It leaves a white spaces which i don't want to . I want the uiview to be full to the top of the screen rather than below the navigation bar because i want it to be transparent so that it show the transparent navigation bar with image view .
Here some example
https://www.dropbox.com/s/teuhsdt6u4agr6e/Screen%20Shot%202016-02-25%20at%205.21.14%20PM.png?dl=0
Navigation bar is not there on the image you put as example. It looks like an image view positioned an appropriate amount of space below the top.
Navigation bar will always be visible if there is one. If you don't want the navigation bar to be displayed, present the view controller instead of pushing it onto the navigation stack.
Related
When using the Navigation Controller it creates a new Navigation Bar on my first view controller. Intead of that bar being at the top of my screen I would like it to be on bottom. Is this possible? If not can I switch to using a different Nav Bar?
Navigation Bars are always at the top of view controllers, and cannot be moved. You could explore a TabBar or ToolBar though, depending on what you want.
Navigation Bar always appear on the top of your UIViewController when embedded in a UINavigationController. You cannot move it to any other position.
Still if you want to achieve such a requirement,
Hide the default UINavigationBar
self.navigationController?.navigationBar.isHidden = true
Create a custom UIView of same height(44) as the UINavigationBar and pin it to the bottom of your controller.
I have created a storyboard layout which contains UIViewControllers within UINavigationControllers which all connect back to a UITabBarController. There is a login page which is not connected to anything (just a UIViewController) which segues into the UITabBarController when the app detects user authentication. You can see what this looks like in the following image:
When I set the translucent property of the Navigation Bar to "false" or "No", the view y origin gets pushed down to the bottom of the Navigation Bar (which is the behavior that I am looking for). However, when I set the translucent property of the Tab Bar to "false" or "No", the Tab Bar DOES become opaque, but the view is not resized to fit between the top and bottom bars. I have unchecked the Extend Edges property for both Under Top Bars and Under Bottom Bars for all UIViewControllers, UINavigationControllers, and the UITabBarController.
When I add subviews programmatically (no auto-layout), the UIViewController's view is still the height of the entire screen, and is only pushed down from the top bar, but not pushed up from the bottom bar. While creating this question, this is the result I got on the simulator (subviews are not even starting below the Navigation Bar):
The layout that I'm trying to achieve is to have the view fit between the Navigation Bar and the Tab Bar so that both bars are opaque and no content goes underneath them. Any ideas or suggestions?
EDIT:
After eliminating individual Navigation Controllers and adding a single one before the TabBar Controller, I'm getting weird behavior including navigation items disappearing and one of my subviews still goes under bottom bar.
EDIT 2:
After doing some research, It seems that having navigation controllers inside each tab is a normal view hierarchy. Unfortunately, I still have not figured out how to limit a view controller's view to be between a navigation bar and a tab bar. Any suggestions?
The navigation bar on my initial view controller is larger than the nav bars on all my other view controllers. In IB, my bar button item and title are distorted; and on the simulator, the bar simply looks too big.
When I transition between views, the bar visibly shrinks.
What's up?
I am working on a Swift app in which I have a navigation view controller and in that I have a table view. The navigation view is in a tab controller view. So in this view, I have a top navigation bar, a table in the middle, and the bottom tab bar.
I'd like to create the view in such a way that the entire visible view should have a background image that is blurred (I know how to do that), and then the navigation bar, the tab bar, and the table itself should all have transparent backgrounds such that all the text and image content are all visible in the foreground against the blurred background image.
What is the best way to approach this? Thanks!
Edit
So my structure looks like:
Tabbed view
-> Navigation controller view
-> Table view
When using the navigation controller or embedding a view controller in navigation controller, the navigation bar light grey color covers the status bar also (the carrier, time, battery, etc). When dragging a navigation bar onto the view controller, the status bar is still white. You can't change the height of the navigation bar...so how can I make everything look and feel the same? Here's the two images:
As you can see, Chat shows that white space above the nav bar, whereas Social doesn't...any workout for this?
In this case navigation bar looks like non-transparent.
Please check properties of navigation bar and/or initialization of this bar to be sure that it's transparent.